how to recover deleted collection in firebase firestore code example
Example: 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);
});