Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delete a kind in Google cloud datastore

In the Cloud Datastore Admin console, I can only delete all entities of a certain kind. I am wondering how to delete the kind along with all its entities as well.

I am using datastore emulator as the local dev server.

like image 824
daiyue Avatar asked Mar 03 '17 10:03

daiyue


People also ask

How do I delete a entity from Datastore?

You can delete from multiple data store entities in one transaction by creating an array of type EntityDataIdentifiers. All entities defined in the array must be of the same data store.

How do I delete files from Google Cloud Storage?

Navigate to the objects, which may be located in a folder. Click the checkbox for each object you want to delete. You can also click the checkbox for folders, which will delete all objects contained in that folder. Click the Delete button.

What is Datastore kind?

An Entity is an individual record that gets stored and retrieved from the datastore. The Kind is the unique string identifier of the type of entity. For example, "Joe" is an Entity with age=42, dob=10-12-2000, and Kind "Person".


1 Answers

After you delete all the entities of a kind, the kind will no longer appear in the Cloud Datastore Admin console. I don't recall if it is immediate. It might take 24 hours or so.

like image 83
gaefan Avatar answered Oct 17 '22 14:10

gaefan