how to delete doc in firebase 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();
});
});