firebase firestore:delete users --shallow

Category: Firebase & Firestore

firebase firestore:delete users --shallow

Delete only top-level documents in a collection

Deletes the documents directly under the users collection but ignores any subcollections, which can orphan nested documents that still reference deleted parents. It is the opposite of -r, and the two flags are mutually exclusive. Use it to clear a collection level while preserving deeper data.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.