How do we vacuum indexes with datastore-indexes.xml?

26 views
Skip to first unread message

Joshua Fox

unread,
Aug 31, 2017, 11:14:28 AM8/31/17
to google-a...@googlegroups.com
How do I clean up indexes? The documentation describes  gcloud datastore cleanup-indexes ~/myapp/index.yaml

but that gives 
 "ERROR: (gcloud.datastore.cleanup-indexes) Invalid value for [index_file]: You must provide the path to a valid index.yaml file"  
     
        when used with our datastore-indexes.xml , and do not want to port this xml to yaml 

Nicola Spreafico

unread,
Aug 31, 2017, 1:11:47 PM8/31/17
to Google App Engine
Assuming that you have a Maven project, you can stage the project with appengine:stage project in order to convert the xml file to the yaml counterpart.
After that, in the appengine-staging folder you'll find the index.yaml file
Reply all
Reply to author
Forward
0 new messages