Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I delete a database from Firebase?

This must be staring me in the face, but don't see the command. How do I delete an unused Firebase DB from the Console in the new Firebase? And Google did not help with an answer, which is kind of a first.

like image 264
Edward Potter Avatar asked Jul 14 '16 11:07

Edward Potter


People also ask

How do I delete a collection in Firebase?

To delete an entire collection or subcollection in Cloud Firestore, retrieve all the documents within the collection or subcollection and delete them.

How do I delete multiple data in Firebase?

In order to delete multiple entries from your database, you need to know all those locations (refernces). So with other words, in the way you add data, you should also delete it. This method atomically deletes all those entries.


1 Answers

Another way if you don't want to delete the project, and just the database, is to create a file on your computer empty.json like this:

{} 

Then click on the ... and "Import JSON" Import JSON

Then "Browse" and upload your empty file: enter image description here

You overwrite your database with an empty JSON file, effectively "deleting" the old database.

like image 170
Mike S. Avatar answered Sep 28 '22 15:09

Mike S.