Hello,
I am trying to delete all documents within a collection but all the documents have an auto generated ID from firebase. The docs in Firebase show only how to delete a "specific" document. How can I loop over all documents and delete them ?
func deleteAllDocuments() {
let db = Firestore.firestore()db.collection("myEntity").document("docname").delete() { err in if let err = err { print("Error removing document: \(err)") } else { print("Document successfully removed!") } } }
Thank you