0

this provided function deletes only a document and leaves it's subcollections and nested data in the firestore DB

firestore.deleteDocument("Document/path/here");

is there a function in javascript the does the delete operation but also for all the nested data in the document?

right now i am using this code to do the job

for(var j =0; j < source.length; j++){
      firestore.deleteDocument("Document/path/here/" + source[i][j]);
    }

0 Answers0