gcloud beta datastore indexes cleanup - remove unused datastore indexes based on your local index configuration
gcloud beta datastore indexes cleanup INDEX_FILE [GCLOUD_WIDE_FLAG ...]
(BETA) This command removes unused datastore indexes based on your local index configuration. Any indexes that exist that are not in the index file will be removed.
To remove unused indexes based on your local configuration, run:
$ gcloud beta datastore indexes cleanup ~/myapp/index.yaml
- INDEX_FILE
The path to your index.yaml file. For a detailed look into defining your index.yaml file, refer to this configuration guide: https://cloud.google.com/datastore/docs/tools/indexconfig#Datastore_About_index_yaml
These flags are available to all commands: --access-token-file, --account, --billing-project, --configuration, --flags-file, --flatten, --format, --help, --impersonate-service-account, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity.
Run $ gcloud help for details.
This command is currently in beta and might change without notice. These variants are also available:
$ gcloud datastore indexes cleanup
$ gcloud alpha datastore indexes cleanup