Answers for "How to delete doc by feild"

0

How to delete doc by feild

//Dart
firestore.collection('messages').getDocuments().then((snapshot) {
  for (DocumentSnapshot ds in snapshot.documents){
    ds.reference.delete();
  });
});
Posted by: Guest on October-26-2021

Browse Popular Code Answers by Language