DELETE AL cloud firestore data code example
Example: how to delete firebase collection
this.db
.collection('cart')
.get()
.toPromise()
.then((querySnapshot) => {
querySnapshot.forEach((doc) => {
doc.ref.delete();
});
});
this.db
.collection('cart')
.get()
.toPromise()
.then((querySnapshot) => {
querySnapshot.forEach((doc) => {
doc.ref.delete();
});
});