Reputation: 228
So i have some docs that say: "This document does not exist. It will not appear in queries or snapshots", and i want to delete them using Javascript. Can anyone explain me how i can access them and delete them?
Upvotes: 0
Views: 362
Reputation: 317467
You can't delete it, because it doesn't exist.
You'll notice that the ID of the document appears in italics. That, and the message you're seeing, indicate that there is no document with the ID you selected. The reason why it appears is because it has subcollections nested under it. The console shows these documents so that you can click through and see the nested subcollections (otherwise, they would be completely invisible to you in the console).
See also:
If you were expecting the deletion of that document to also delete the subcollections, that's not going to happen with a simple document delete. You will have to write code to delete all the documents in all the subcollections as well.
See also:
Upvotes: 1