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?
It doesn't work for me.
I have a GAE application where I have to logging me at the beginning.
I have deleted my local_db.bin file (I have more files in that folder: datastore-indexes-auto.xml and local_search.bn). I have re-opened my project and run it as. When I launch my main .jsp, it is loading request from my datastore but I have not data in my datastore and asking me for my PMF (persistent manager factory).
Should I delete more things?
Exactly, I am trying to open: localhost:8888/_ah/admin/ but it is not found.
Diego.
Clearing the Development Server Datastore
The development web server uses a local version of the datastore for testing your application, using temporary files. The data persists as long as the temporary files exist, and the web server does not reset these files unless you ask it to do so.
If you want the development server to erase its datastore prior to starting up, use the --clear_datastore option when starting the server:
Using the Datastore
To add another bit of helpful info: If using Eclipse and you want to clear the local datastore, look for this console msg:
It only shows up after you do something to force datastore initialization, e.g. which could be refreshing the entity list on the admin page. Then stop your server and delete the file, and when you restart you should see:
Sorry to wake this thread up, but just in case I'd like to add a tip for noobs like me (finally found the answer in google documentation) :
If you want to reset the Local datastore (for example while developping using eclipse) all at once, shut down the server, find the file 'local_db.bin' in your project (should be in the WEB-INF/appengine-generated/ directory), and delete it.
Works fine with java, didn't try with python yet.
++
If you use maven in your project, you can just do a "mvn clean install". That will reset the datastore locally of course.
Deleting local data can be done by opening http://localhost:8000/datastore