Answers for "firestore delete document by id"

1

firestore javascript delete document

// define document location (Collection Name > Document Name > Collection Name >)
var docRef = Firebase.firestore().collection("Rooms").doc("bsYNIwEkjP237Ela6fUp").collection("Messages");

// delete the document
docRef.doc("lKjNIwEkjP537Ela6fhJ").delete();
Posted by: Guest on December-09-2020
0

firestore delete document by id

const res = await db.collection('cities').doc('DC').delete();
Posted by: Guest on December-30-2020

Code answers related to "firestore delete document by id"

Browse Popular Code Answers by Language