firebase delete several documents code example
Example 1: firebase storage javascript delete document
// define the file location in a string (folder/folder/fileName)
var fileLocation = "Images/Dogs/myDog.jpg"
// delete the file
Firebase.storage().ref().child(fileLocation).delete();
Example 2: 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();