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.

[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:closed
  • Created 4 years ago
  • Reactions:9
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

6reactions
thatfiredevcommented, Sep 27, 2019

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.

4reactions
jimmykanecommented, Oct 8, 2019

Its true. I thought this extension would do a recursive sub-collection delete which is the main pain of deleting user data.

Read more comments on GitHub >

github_iconTop 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 >

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 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