How do I completely delete Cloud Datastore from a project?
Solution 1
Unfortunately, there is no way to purge the previous existence of a Cloud Datastore database to try either Cloud Firestore in native or Datastore mode. You'll have to use a new project to try Cloud Firestore in either native or Datastore mode.
Solution 2
This is the response I got from Google Cloud Support today (February 16th, 2021):
Generally, we do recommend to create a new project and enable Firestore therein. Nonetheless I may submit a request to delete your existing database which may allow you to change the database to the desired mode. However, please keep in mind that I’m unable to guarantee it’s approval.
Solution 3
I just tried it on my end. I deleted all my entities (test project) and disabled my Datastore API, same issue as you when I visit the console.firebase.google.com page.
This is likely an issue that needs to be reported either through support (if you have a support package for Google Cloud Platform), or through our issue tracker.
Related videos on Youtube
Mihail Malostanidis
Updated on September 14, 2022Comments
-
Mihail Malostanidis almost 2 years
I want to create a Firestore in Native mode in an existing project. I don't have any data in Cloud Datastore, but it blocks me, saying
This project uses another database service Your current project is set up to use Cloud Datastore or Cloud Firestore in Datastore mode. You can access data for this project from the Cloud Datastore console.
when going through https://console.cloud.google.com/firestore/ and
Cannot enable Firestore for this project Currently Firestore cannot be enabled in projects already using Cloud Datastore or App Engine
when going through https://console.firebase.google.com/
I've tried it with writes to datastore enabled and disabled
I just want to completely purge the
Cloud Datastore
product from my project. -
Mihail Malostanidis almost 6 yearsBy "disabled Datastore API" do you mean disabling writes or something else? I just made a new project since I didn't really have anything of value in the old one, but someone else might be inconvenienced more.
-
spechter over 4 yearsGosh. That is really ridiculous. I didn't know that App Engine has to use Firestore in Datastore mode, now I have to re-create my whole project to fix it. Good grief. +1 for AWS.
-
Inzamam Malik over 4 yearsHow can i disable database api?
-
Eduardo about 4 years@spechter From console.cloud.google.com you can change it to "Native" but only one time.
-
Jack Bridger about 4 yearsHi @Eduardo could you point me in the direction to change to native from the console? Thanks!
-
Eduardo about 4 years@jackbridger Just go to console.cloud.google.com, select your database, there on the top you should see a button saying you can switch to Native mode.
-
touti about 4 years@Eduardo Your answer should be considered the correct one.
-
Luke Puplett about 2 yearsIt's an appalling design, the likes of which I've not seen in the other two cloud platforms, with extremely costly ramifications to set everything up again in a new project. Try this stackoverflow.com/questions/52434455/… and good luck, I feel your pain.
-
jake about 2 yearsDid it get approved?