How to Delete all documents in collection in Firestore with Flutter

Posted by Andre Scott | Updated on

Want to Delete all documents in collection in Firestore with Flutter The first answer is almost correct. The issue has to do with the map method in dart and how it works with Futures. Anyway, try using a for loop instead like so and you should be good:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers