1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-11 15:39:42 +00:00
gcloud-help/gcloud/alpha/datastore/indexes/cleanup
2024-10-09 09:55:07 +00:00

51 lines
1.8 KiB
Text

NAME
gcloud alpha datastore indexes cleanup - remove unused datastore indexes
based on your local index configuration
SYNOPSIS
gcloud alpha datastore indexes cleanup INDEX_FILE [--database=DATABASE]
[GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(ALPHA) 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.
EXAMPLES
To remove unused indexes based on your local configuration, run:
$ gcloud alpha datastore indexes cleanup ~/myapp/index.yaml
POSITIONAL ARGUMENTS
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
FLAGS
--database=DATABASE
The database to operate on. If not specified, the CLI refers the
(default) database by default.
For example, to operate on database testdb:
$ gcloud alpha datastore indexes cleanup --database='testdb'
GCLOUD WIDE FLAGS
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.
NOTES
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct
project, you might be trying to access an API with an invitation-only early
access allowlist. These variants are also available:
$ gcloud datastore indexes cleanup
$ gcloud beta datastore indexes cleanup