Sunday, May 3, 2009

[Google App Engine] How to Clear SDK Datastore

To clear the SDK datastore you'll just have to delete the following file: "./WEB-INF/appengine-generated/local_db.bin". The file will be generated for you again next time you run the development server and you'll have a clear db.

This is one of the little gotchas that come in handy when you start playing with the Google Application Engine. You'll find yourself persisting objects into the datastore then changing the JDO object model for your persistable entities ending up with a obsolete data that'll make your app crash all over the place.


Abe said...

thanks for posting this. It's definitely easy to get your local datastore in an inconsistent state while developing.

Burak Slodko-Kwasny said...

Thank U, I was very helpful :)