Reputation: 340
I have created a firestore database in firebase. Now I no longer need that,I couldn't found any option to delete it.Is there any option ?
Upvotes: 11
Views: 14574
Reputation: 37
You can delete the "database" via "Firestore" using the controls highlighted here:
You can also follow this OFFICIAL link for more info https://firebase.google.com/docs/firestore/manage-databases#update_the_delete_protection_setting
Upvotes: -3
Reputation: 318
To delete a DB in Firestore, you can also use gcloud
. For the default DB you have to use this command: gcloud alpha firestore databases delete --database='(default)'
Upvotes: 5
Reputation: 23261
You can use the CLI to delete the entire database:
firebase firestore:delete --all-collections
It will list all the collections in your Firestore and ask you for confirmation if you really want to drop everything.
Upvotes: 6
Reputation: 2064
Depending on how much data is in the DB you could delete it one top-level collection at a time using the firebase CLI command:
firebase firestore:delete "COLLECTION_NAME" --recursive
Where COLLECTION_NAME is the name of a collection at the top level of your DB. This command can only delete a few hundred or thousand docs in a few seconds before it starts failing and you need to run it again. I just keep running it until all the docs and collections in my top level collection are deleted.
Upvotes: 0
Reputation: 16386
There's no way option to delete Firestore in Firebase UI, neither in Google Cloud. You can remove the whole project or let it be. You won't be billed for it if you don't use it.
Upvotes: 24
Reputation: 6919
You can delete The Collection which will delete all the documents and fields inside it.
It is Given in Firebase Console.
Upvotes: 0