I got a multiple documents with different ids, and i need to implement some method to delete them all, i searched so i guess the way i should go is to use batch. So my database is as shown in this Image
so i was able to get my documents' ids in an array list like that..
[0Y5rfMK3duHBUTN9XsO5, 2Q70mSjNxkAoUMDAJ8rz, etc...]
and my code:
WriteBatch batch = db.batch();
DocumentReference myRef = db.collection("Collection").document(String.valueOf(idsList));
batch.delete(myRef);
batch.commit();
but this doesn't work, so if there is a little missed step, or if there is any other way to perform it, it would be greatly appreciated to write it down.