Deleting a RTDB

170 views
Skip to first unread message

Bruce Martin

unread,
Jan 11, 2021, 5:15:18 AM1/11/21
to Firebase Google Group
I want to delete a RTDB that is used by a project I am going to delete. I have found how to delete the project via the dashboard, but can not find a way to delete the whole database using the dashboard. I'm told the DB must be empty first. When I try to delete documents there is no way to delete entire nodes. I must delete each record individually by hand. But there are thousands of records. There must be simpler way, but I can't fine it. I don't want to delete the project leaving an orphan database using my data storage quota.. Can anyone help?

Sam Stern

unread,
Jan 11, 2021, 5:17:28 AM1/11/21
to Firebase Google Group
Hi Bruce,

For doing a large deletion from RTDB my suggestion would be to use the Firebase CLI's "database:remove" command:
https://firebase.google.com/docs/cli#rtdb-commands

- Sam

On Mon, Jan 11, 2021 at 10:15 AM Bruce Martin <bruce.m...@gmail.com> wrote:
I want to delete a RTDB that is used by a project I am going to delete. I have found how to delete the project via the dashboard, but can not find a way to delete the whole database using the dashboard. I'm told the DB must be empty first. When I try to delete documents there is no way to delete entire nodes. I must delete each record individually by hand. But there are thousands of records. There must be simpler way, but I can't fine it. I don't want to delete the project leaving an orphan database using my data storage quota.. Can anyone help?

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/fc3cca36-5aa0-45ee-a285-2903f0f8a79fn%40googlegroups.com.

Bruce Martin

unread,
Jan 11, 2021, 10:14:34 AM1/11/21
to fireba...@googlegroups.com
Thanks Sam

I tried this:
C:\WINDOWS\system32>firebase database:remove / --confirm --project acestrader-4be71

But got this:
Error: HTTP Error: 401, Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.

I don't know how to provide the missing data. My project AcesTrader (id: acestrader-4be71) has been suspended by the  API Trust & Safety Team, so I do not have normal access.



You received this message because you are subscribed to a topic in the Google Groups "Firebase Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebase-talk/x7W2DLXBAo0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CAHafJBpQJz2Aet9vWnEcPpr3Y8f2E%3DJNeycVwg43_dKbUwQK%3Dg%40mail.gmail.com.

Sam Stern

unread,
Jan 11, 2021, 10:24:45 AM1/11/21
to Firebase Google Group
Hi Bruce,

If your project has been suspended you probably need to reach out to Firebase support for help deleting this data manually, I wouldn't expect normal tools to work.

- Sam

Reply all
Reply to author
Forward
0 new messages