You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot delete a collection with firestore:delete due to HTTP Error 429 #7845
When running firebase firestore:delete -r "collectionId" on a very big collection (~100'000 documents) composed of very large documents (~1MB) the command fails.
The error reported is the following:
HTTP Error: 429, This database has exceeded their maximum bandwidth for writes, please retry with exponential backoff.
It becomes impossible to delete the collection.
[REQUIRED] Steps to reproduce
Create a collection composed of many documents (>100'000), where each document has a very large size (~1MB).
Run firebase firestore:delete --debug -r "collectionId"
[REQUIRED] Expected behavior
The expected behavior is that the collection "collectionId" is deleted successfully.
[REQUIRED] Actual behavior
The actual behavior is that the collection is not deleted. At the moment it's impossible to delete the collection.
Hello, thanks for reporting this, it looks like the Firebase CLIs implementation of delete does not do rampup/retries with exponential backoff on this bandwidth error, which it looks like you would be hitting because the documents you're trying to delete are fairly large.
Activity
NickChittle commentedon Oct 22, 2024
Hello, thanks for reporting this, it looks like the Firebase CLIs implementation of delete does not do rampup/retries with exponential backoff on this bandwidth error, which it looks like you would be hitting because the documents you're trying to delete are fairly large.
While we look into this, you could try using one of the recursive delete methods in the SDKs, for example in python: https://github.com/googleapis/python-firestore/blob/3fe727102d1a4f65c9b8767d11015d8baaead355/google/cloud/firestore_v1/client.py#L297