Habeeb Rahman
Habeeb Rahman

Reputation: 340

How to delete a created firestore database.?

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

Answers (6)

Supercosition
Supercosition

Reputation: 37

You can delete the "database" via "Firestore" using the controls highlighted here:

enter image description 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

Mikkel
Mikkel

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

Mobiletainment
Mobiletainment

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

Alex Egli
Alex Egli

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

Sasha Koss
Sasha Koss

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

Ashish
Ashish

Reputation: 6919

You can delete The Collection which will delete all the documents and fields inside it.

It is Given in Firebase Console.

Image

Upvotes: 0

Related Questions