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.
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.
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.
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".
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With