Open rezamohamed opened 2 years ago
You cannot do it. It is not per the plugin capabilities, but for firebase.
Firebase documentation says that you first need to delete all children collections and documents and then the parents.
Ah gotcha, ok I iterated through the subcollection and deleted each document individually. Was hoping for a faster solution.
Yeah. I wish there is something like that. Hopefully, in the future Firebase provides that support.
Good luck!!
Following along the docs, using this
await CrossCloudFirestore.Current .Instance .Collection("yourcollection") .Document("yourdocument") .DeleteAsync();
I can't seem to delete the collection if there are nested collections below 'yourcollection'. How would I delete an entire Collection (including all sub-collections)?