[FR] delete-user-data: Delete subcollections
See original GitHub issue[REQUIRED] Step 2: Extension name
This feature request is for extension: delete-user-data
What feature would you like to see?
It would be helpful if the delete-user-data extension could delete all documents in subcollections as well.
How would you use it?
Often you would have one or more subcollections below a user profile document.
Example: /users/{UID}/stories
or /users/{UID}/likes
.
In this case it would be really nice if the extension could delete all documents in a specified subcollection, or maybe all documents in any subcollections (recursively). This is not trivial to implement, and therefore fits very nicely in the delete-user-data
extension.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:9
- Comments:13 (9 by maintainers)
Top Results From Across the Web
Delete a Document with all Subcollections and Nested ...
Deleting collection with nested subcollections might be done easy and neat with node-JS on the server side. const client = require('firebase- ...
Read more >Delete data from Cloud Firestore - Firebase
If you want to delete a document and all the documents within its subcollections, you must do so manually. For more information, see...
Read more >How to fully delete a collection that have subcollections - Reddit
When I try to delete a collection that have subcollections, it remains hidden,, but the subcollections aren't deleted. How to fully delete them?...
Read more >Firebase Delete Collections Documents & Sub-collections
firebase delete all documents in collection, also learn how to delete collections and subcollections using flutter bloc, Firebase delete ...
Read more >Untitled
Turn off Enable Google Analytics for firestore javascript delete document. ... Answers to firebase - Delete a Document with all Subcollections and Nested ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I vote to make it a default. I mean, if we’re deleting all of the user data, it wouldn’t make sense to keep subcollections under that UID.
Its true. I thought this extension would do a recursive sub-collection delete which is the main pain of deleting user data.