Well, I'm developing in App Engine (Java) and after a lot of tries and deployments, I need to reset the datastore. There is a lot of random data I added to test performance, and besides that the entities changed a lot, so I need to delete all: data, tables, indexes.
How can I do that?
When working locally, on Windows 7 the file is user\UserName\AppData\Local\Temp\dev_appserver.datastore
There is no built in command equivalent to DROP TABLE or TRUNCATE TABLE in SQL. You just need to create a "delete everything" page in your app, then repeatedly call that page via a script. In that page, you want to delete as many entities as you can yet still reasonably expect to finish before the request times out. The exact code depends on whether you're using JDO/JPA or the low level API. (the low level API will be faster because you can use batch operations.)
This previous SO question is pretty much the same, only for Python
Delete all (or a part) of your application’s data is now part of the Admin console
To enable this functionality, simply enable the following builtin in your app.yaml file:
Adding these lines to app.yaml enables the “Datastore Admin” page in your app’s Admin Console
sorry to be so late on this, but I was just trying to do the same myself...
I logged into my account (appengine.google.com) and found the option to browse the datastore through an admin utility (datastore/dataviewer)... that allows create/update/delete.
Just execute a query without a filter to fetch all the entities, and delete them one by one.
I was using app engine with Google Coursebuilder and had to use this command to clear the datastore: