Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I delete all entities from my local Google App-engine datastore?

How can I remove all entities or reset the local datastore on my dev_appserver? I accidentally recursively called a function to create an entity when testing.

I am using the Google App-engine SDK on Vista with Python.

like image 523
Jason Rikard Avatar asked Jun 18 '09 03:06

Jason Rikard


People also ask

How do I update entity in Datastore?

To update an existing entity, modify the attributes of the Entity object, then pass it to the DatastoreService. put() method. The object data overwrites the existing entity. The entire object is sent to Datastore with every call to put() .

How do I delete apps from my Google Cloud console?

In the console, go to the Manage resources page. In the project list, select the project that you want to delete, and then click Delete. In the dialog, type the project ID, and then click Shut down to delete the project.


1 Answers

dev_appserver.py --clear_datastore=yes myapp 

See here for more info.

Shorthand version:

dev_appserver.py -c 
like image 110
mechanical_meat Avatar answered Sep 24 '22 01:09

mechanical_meat