File: //snap/google-cloud-cli/394/help/man/man1/gcloud_beta_datastore_indexes_cleanup.1
.TH "GCLOUD_BETA_DATASTORE_INDEXES_CLEANUP" 1
.SH "NAME"
.HP
gcloud beta datastore indexes cleanup \- remove unused datastore indexes based on your local index configuration
.SH "SYNOPSIS"
.HP
\f5gcloud beta datastore indexes cleanup\fR \fIINDEX_FILE\fR [\fB\-\-database\fR=\fIDATABASE\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
\fB(BETA)\fR 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.
.SH "EXAMPLES"
To remove unused indexes based on your local configuration, run:
.RS 2m
$ gcloud beta datastore indexes cleanup ~/myapp/index.yaml
.RE
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
\fIINDEX_FILE\fR
The path to your \f5index.yaml\fR file. For a detailed look into defining your
\f5index.yaml\fR file, refer to this configuration guide:
https://cloud.google.com/datastore/docs/tools/indexconfig#Datastore_About_index_yaml
.RE
.sp
.SH "FLAGS"
.RS 2m
.TP 2m
\fB\-\-database\fR=\fIDATABASE\fR
The database to operate on. If not specified, the CLI refers the \f5(default)\fR
database by default.
For example, to operate on database \f5testdb\fR:
.RS 2m
$ gcloud beta datastore indexes cleanup \-\-database='testdb'
.RE
.RE
.sp
.SH "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 \fB$ gcloud help\fR for details.
.SH "NOTES"
This command is currently in beta and might change without notice. These
variants are also available:
.RS 2m
$ gcloud datastore indexes cleanup
.RE
.RS 2m
$ gcloud alpha datastore indexes cleanup
.RE