How do I delete a database from Firebase? - 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.

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"
Then "Browse" and upload your empty file:
You overwrite your database with an empty JSON file, effectively "deleting" the old database.

THIS DELETES THE ENTIRE PROJECT
To delete ONLY the database just delete the top level object/node.
Click on your project (the white box below, hiding name):
Then click on gear (settings) icon and click "Project Settings":
Scroll to bottom and click "DELETE PROJECT":

It's currently not possible to delete other Realtime Database instances created via Firebase Console.
They do have plans for adding the feature,but It'll come in the future.
For now, you can watch their updates here:
https://firebase.googleblog.com
https://firebase.google.com/support/releases
Their support suggested me to wipe all data and to lock down the database to prevent any usage, as a work-around for now.
Just remembering that having multiple instance is only possible if you have a Blaze account.

Looks like Google recently introduced this feature to delete a Firebase RTDB. To delete this (after we raised this concern with Google Firebase team on Firebase RoadShow India 😃).
To do this, follow these steps:
Go to your Firebase RTDB which you want to delete
Delete all your data from the database
Select the 3 dots on the top right corner
Hit the "Disable Database" button
After the database is disabled, hit that 3 dots again and click "Delete Database"
Cheers!

If the dots method doesn't work then here's another option-
Open the project you want to delete.
Go to setting (on the left side of the page|near Project Overview).
Select project settings.
You'll find delete project option at the end of that page (below app config).
Then you'll be asked things about the policy of deleting the project and your preference and stuff... you can answer accordingly.

Related

Cannot delete project

I am unable to delete a project from the Nest Device Access Console. When I click the delete icon and click delete, it processes and comes back with a pop-up that says "Could not delete project" with no other information. If I try to delete the OAuth Client ID, it processes and comes back with a pop-up that says "Could not update project data" with no other info.
Any advise would be helpful.
Resolved: this seemed to be just a temporary issue with the website.

How to fix firebase index issue?

While launching the react native expo app,got this prompt.
The query requires an index. You can create it here: https://console.firebase.google.com/v1/r/project/production-a9404/firestore/indexes?create_composite=Ck5wcm9qZWN0cy9wcm9kdWN0aW9uLWE5NDA0L2RhdGFiYXNlcy8oZGVmYXVsdCkvY29sbGVjdGlvbkdyb3Vwcy9jb2lucy9pbmRleGVzL18QARoMCghhdXRob3JJRBABGg0KCWNyZWF0ZWRBdBACGgwKCF9fbmFtZV9fEAI
When I clicked, the google console showing error as below.
But, this one worked earlier for a different collection and when trying for a new collection, getting this.
Please suggest.
It looks like you're signed in with an account that doesn't have permission to read or create indexes.
You should open the link from a user account that does have those permissions. When you do that, you'll see a screen that has all information prepopulated, and you can create the index with a single click (and some patience).

How do I switch/add Firestore to an existing firebase project

I have an existing Firebase project with an empty real time database. I want to switch/add the new Firestore beta but I don't see any option in the dashboard to add it. If I click on Database in the left menu, all I see is the realtime database.
How do I add/enable the Firestore beta on a project using the dashboard admin?
Do I have to delete the existing real-time database? Or can they exist side-by-side on the same project?
I don't see the drop down in my dashboard like others have mentioned.
Select Database on the left menu and then click on the drop down menu as shown in the screenshot and from there you select the interface you want to work on (real time DB or Firestore).

Firebase database empty tab, rules load indefinitely

I just created a firebase project. And the database in the console appears empty. On previous projects, when you clicked on the empty white area, you were able to create database items by hand.
But clicking it doesn't do anything.
The rules tab is loading indefinitely, and i can't type anything.
I'm on Chrome last version, do you encounter such problems by creating new projects?
Here are some screenshots:
Ok, quick answer to my own question as i wasn't able, from my Angular2 App, to interact with database as well via websocket.
I'm working in a company with a (strong) proxy setup file. Disabled it on windows settings and all works now perfectly. Firebase website appears to rely on websockets.
Hope this information can be useful to someone else!

How do you add a NODE to your database root in the Firebase Realtime Database Console?

The Console ONLY allows you to add a CHILD to the root. You cannot add a NODE in the Windows Console or in the Chrome Console.
So, if I got the question right, the following is desired:
/db-root
/newly-added-node-1
/newly-added-node-2
...
Had the same problem recently. There was also such a warning in the Firebase database console section:
Read-only & non-realtime mode activated to improve browser performance. Select a key with fewer records to edit or view in realtime.
If this is the case, you can simply add a node through the URL string. So, just visit:
http://console.firebase.google.com/project/${project-id}/database/${db-root}/data/${new-node-name}
And you'll be able to add data to the new node.
Hope this helps. Cheers!

Resources