question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Delete User Data extension to allow targeting documents for a given field value

See original GitHub issue

Extension name

This feature request is for extension: delete-user-data

What feature would you like to see?

Ability to target documents that match the user ID as one of the fields in Firestore. One example would be a collection of articles and each article stores the author’s UID in the authorUID field. When the user decides to delete their account, all articles the user is the author of should be deleted.

How would you use it?

I’d use this feature to remove all user associated data in Firestore applications.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
TylerAHoldencommented, Dec 9, 2020

I’d be interested in using this. Can you share some snippets?

https://gist.github.com/TylerAHolden/10d0ee986a8a1f743fa09154118b177b

I forgot I also added the ability to delete storage paths based on a field from the userData. In other words, you can pass {DEFAULT}/{userData.avatar} into the storage path variable and it will first get collection(‘users’).doc(UID).get() and then get the avatar field and delete that file from the storage bucket. It’s a pretty hasty implementation but it works!

1reaction
russellwheatleycommented, May 12, 2020

Hey @bhr, thanks for the feedback. This sounds like a potential feature request candidate.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using the Delete User Data extension - Firebase - Google
The Delete User Data extension ( delete-user-data ) lets you delete a user's data when the user is deleted from your Firebase project....
Read more >
Delete a Marketing Cloud Data Extension - Salesforce Help
Delete a Marketing Cloud Data Extension · Click Subscribers. · Click Data Extensions. · Select the checkbox next to the name or names...
Read more >
Content Management API | Contentful
To delete fields you no longer need, first, omit the field you're targeting for deletion and activate the content type. This step is...
Read more >
chrome.storage - Chrome Developers
The Storage API provides an extension-specific way to persist user data and ... sensitive data, consider using the session storage area to hold...
Read more >
Appian Administration Console
Allow News Entry Deletion - Allow users to delete news entries and social tasks ... Only allow files with the specified extensions -...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found