Search code examples
google-app-enginegae-search

How to delete a search Index itself


Search Index has a method to delete a document. https://cloud.google.com/appengine/docs/standard/python/search/indexclass (Python) https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/search/Index (java)

But how to delete Index itself?

Empty Index was listed at the Text Search Panel in the Admin Console.

but no button to delete.


Solution

  • Since you have tagged gae-search I assume your question refers to an index of the Search API (i.e. full text search service, not NDB/HRD datastore index).

    Currently you can only delete the documents in an index, but you can't delete the index itself, e.g. issue 8235 and 8490. This restriction of Search API applies to all languages supported in Google App Engine.

    The vacuum_indexes prompts you only for indices in datastore, but I miss something like this for the search service too.