Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delete namespace in Google Cloud datastore

I have a couple of Google App Engine versions in a project, and I use its Datastore. Each version creates a namespace on Datastore, where I have created some entities within a couple of kinds.

Now I've deleted some of the versions, and I want to delete their stuff on Datastore. I've deleted the entities, then the referred kinds had disappeared, but I can't find a way to delete the namespaces.

How can I delete a namespace in Google Cloud Datastore?

like image 248
Leo von Barbarosa Avatar asked Feb 07 '18 17:02

Leo von Barbarosa


People also ask

How do I delete a GCP Datastore?

Click the link on top of Dataflow page: You can select task from the list of available options: Select 'Bulk Delete Entities in Cloud Datastore' from the list.

How do I delete an index in Datastore?

Deleting unused indexes When you are sure that old indexes are no longer needed, you can delete them by using the datastore indexes cleanup command. This command deletes all indexes for the production Datastore mode instance that are not mentioned in the local version of index.

What is namespace in Google Datastore?

Multitenancy and partitioned data Note: Namespaces are not a security mechanism in Datastore mode. A user with access to one partition in a project has access to all partitions in the project. Namespaces provide a way to organize your entities within a project.


1 Answers

Each namespace stores a set of system kinds eg. statistics: https://cloud.google.com/datastore/docs/concepts/stats Those are reculculated every 48h, and deleted if there are no more user data in that namespace. At that time namespace should disappear from your Datastore as well.

like image 65
Ula Krukar Avatar answered Nov 03 '22 10:11

Ula Krukar