Can't delete firestore v9 collection by code in my react js app v18
urlsab opened this issue · 2 comments
urlsab commented
I searched all over your docs and there is no writen solution besides for node.js (and not reactjs or web) or at console.
please fix that and add readable solution for that. thanks alot
thatfiredev commented
@urlsab As mentioned in our docs:
Deleting collections from a Web client is not recommended.
That's due to the number of operations you'll need to do in order to achieve that (retrieve all documents from the collection and delete them one by one).
As an alternative, you can create a Cloud Function to do that on the server side as described in this page.
urlsab commented