Site Logo Mukhthar CM Home

Deleting a Firestore Document in Flutter

Aug 20, 2021

There is no need for a huge story here. Deleting a Firestore document is a straightforward thing.

We just have to point to a doc and call delete on it.

final _db = FirebaseFirestore.instance;

await _db.collection("notes").doc("note1").delete();

That’s it.

The pointed document will be deleted by the above function.

Hey You!

I'm looking for paid writing gigs. If you're a publisher looking for a writer, please reach out to me at my email

Join my email list to get the latest posts and updates.