Answers for "delete a doc firestore"

3

how to delete document firestore database

db.collection("cities").doc("DC").delete().then(() => {
    console.log("Document successfully deleted!");
}).catch((error) => {
    console.error("Error removing document: ", error);
});
Posted by: Guest on May-27-2021
1

delete a doc firestore

db.collection("cities").doc("DC").delete()
Posted by: Guest on August-28-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language