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?
Asked
Active
Viewed 289 times
1 Answers
1
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:
- This document does not exist and will not appear in queries or snapshots, but identically structured document works
- This document does not exist, it will not appear in queries or snapshots? Cloud Firestore
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:

Doug Stevenson
- 297,357
- 32
- 422
- 441