I am deleting a doc which has sub-collections using a batched operation.
const myDocRef = firestore.collection("...").doc("...");
const myOtherDocRef = firestore.collection("...").doc("...");
const batch = firestore.batch();
batch.delete(myDocRef);
batch.delete(myOtherDocRef);
// TODO - Delete sub-collections ("likes", "comments")
batch.commit();
The document "myOtherDoc" is the one that has nested sub-collections. How can I delete them too, recursively, using the batch operation?
I mean, is it not possible to add some configuration for the recursively deletion?