bigpotato
bigpotato

Reputation: 27507

Firebase Console: How do I delete a table?

I noticed that firebase is not showing the buttons to delete a table when it has a lot of data in it:

My location-orders table with a lot of data in it:

enter image description here

As opposed to my users table which has 1 thing in it:

enter image description here

How do I delete the locations-orders table?

Upvotes: 3

Views: 3246

Answers (3)

Rubenilson Emerson
Rubenilson Emerson

Reputation: 1

You can use the postman or some auxiliary tool to execute api and make the call rest:

postman image

soon after it returns to the firebase database and its table is enabled for deletion.

Upvotes: -1

Boris Zagoruiko
Boris Zagoruiko

Reputation: 13164

When my database is large using x is not that useful (to be honest for some reason it doesn't appear after some number of rows for me).

So, the easiest way I've found is to use firebase cli.

First install it (You need node.js installed) with npm install -g firebase-tools

Login to your firebase project with firebase login.

Remove data with:

firebase database:remove / --project your-project-id

/ here is location of data to delete so for your case you need:

firebase database:remove /locations-orders --project your-project-id

Upvotes: 3

Frank van Puffelen
Frank van Puffelen

Reputation: 598887

Given the amount of data, your database dashboard has switched to static, read-only mode. You cannot modify the data in this mode, so will have to get back into interactive mode first.

If you click on location-orders you will get a view that starts at that level.

In this new view you will see an x over location-orders. Clicking that x, deletes the location-orders.

Upvotes: 0

Related Questions