-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Hi all,
Experiencing an issue with firestore:delete here. Didn't see any current or previous issues when searching. Form completed below. The below issue persists anytime I try deleting collection from a specific database. I can always delete from firestore db: (default) just fine with cli, but not when specifying another db.
[REQUIRED] Environment info
firebase-tools: 13.2.1
Platform: macOS
Node: 20.10.0
[REQUIRED] Test case
When running cli command for a firestore:delete with database the command errors out with "Error: Deletion failed."
Example command:
firebase firestore:delete --project projectNameHere --database test-db --shallow testCollection
Error:
Error: Deletion failed. Errors: Failed to fetch documents to delete >= 3 times..
[REQUIRED] Steps to reproduce
- Create a new db on your gcp project
a.)firebase firestore:databases:create test-db --project projectNameHere --location nam5 - Go into created db on gcp firestore
- Create a collection named testCollection
- Create a blank document
- Run firestore:delete command
a.)firebase firestore:delete --project projectNameHere --database test-db --shallow testCollection - You should see error message
[REQUIRED] Expected behavior
The deletion works successfully so long as the database and the collection exist. Collection from correct firestore db is then deleted of all documents.
[REQUIRED] Actual behavior
The command errors out