xxxxxxxxxx
// 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();
import { doc, deleteDoc } from "firebase/firestore";
await deleteDoc(doc(db,"collectionName","documentId")
//ex.. await deleteDoc(doc(db,"posts","2"))