Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clean datastore for GoogleAppEngine

How to clear datastore in GoogleAppEngine.

I want to clear my development data to do a test again, but I can found a way to do that

like image 778
Victor Avatar asked Aug 06 '26 00:08

Victor


2 Answers

If you are running from the commandline, use the --clear_datastore flag, e.g.,

dev_appserver.py --clear_datastore=yes app

Otherwise, if you're running it off the included GAE launcher, go into the settings of your app (double click it), and there should be a little checkbox that says "clear datastore on launch" under Launch Settings.

reference: https://cloud.google.com/appengine/docs/python/tools/devserver#Python_Using_the_Datastore

like image 98
waffle paradox Avatar answered Aug 10 '26 03:08

waffle paradox


dev_appserver.py --clear_datastore myapp 

assuming by "development data", you mean the data in the dev server.

like image 30
Wooble Avatar answered Aug 10 '26 03:08

Wooble



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!