How to delete index on App Engine for Java

Do you like this post? Writing posts, developing libraries and programming online font creators is actually hard work. I order most of my electronics from a Chinese website called Banggood. It is save and the items usually arrive in good quality. With every order you do there by following this link you are supporting the blog. Thank you!

At the time of this writing there is no function to delete (unused) your datastore indexes directly with the Java tool set. But there is a way around: the python SDK has a function called vacuum_indexes. This is how your can do it, step by step:

  1. Install the Google App Engine for Python SDK and follow the steps described for your operating system here:
  2. After you installed python, and the GAE for Python SDK, setup a project in a tmp folder, that has the same name as your Java project with the tools from the SDK. Pay attention on capital letters. Your project must have EXACT the same name as the Java version
  3. [Optional] Deploy that to the app engine, but pay attention that you choose a version differently from all versions used by your java environment. You will be asked for your email and password
  4. On the command line execute vacuum_indexes pathToYourProject/
  5. Then you have to decide which index you want to delete. Be careful. Deleting the wrong index can render your app temporarily unusable…
Posted by squix78

Leave a Reply