I am looking for a way to delete certain data from firestore.
For example, I would like to wipe out documents that include "OVER" in 'name' field. I tried to do this code. but it does not work. How should I do?
firebase
.firestore().collection("stack").where("name",">=","OVER").delete().then(() => {
console.log("Document successfully deleted!");
}).catch((error) => {
console.error("Error removing document: ", error);
});