File: //snap/google-cloud-cli/396/help/man/man1/gcloud_alpha_spanner_migrate_cleanup.1
.TH "GCLOUD_ALPHA_SPANNER_MIGRATE_CLEANUP" 1
.SH "NAME"
.HP
gcloud alpha spanner migrate cleanup \- cleanup migration resources given a data migration job id
.SH "SYNOPSIS"
.HP
\f5gcloud alpha spanner migrate cleanup\fR \fB\-\-job\-id\fR=\fIJOB_ID\fR \fB\-\-target\-profile\fR=\fITARGET_PROFILE\fR [\fB\-\-data\-shard\-ids\fR=\fIDATA_SHARD_IDS\fR] [\fB\-\-dataflow\fR] [\fB\-\-datastream\fR] [\fB\-\-log\-level\fR=\fILOG_LEVEL\fR] [\fB\-\-monitoring\fR] [\fB\-\-pub\-sub\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
\fB(ALPHA)\fR Cleanup migration resources given a data migration job id.
.SH "EXAMPLES"
To cleanup resources for a data migration job, specify the jobId and the boolean
flags for the resources that need to be cleaned up. For sharded migrations,
specific data shard Ids can also be provided.
.RS 2m
For a all shards of a sharded migration, or a non\-sharded migration:
$ gcloud alpha spanner migrate cleanup \-\-job\-id="XXX" \e
\-\-target\-profile="XXX" \-\-datastream \-\-dataflow \-\-pub\-sub \e
\-\-monitoring
.RE
.RS 2m
For a subset of shards of a sharded migration:
$ gcloud alpha spanner migrate cleanup \-\-job\-id="XXX" \e
\-\-data\-shard\-ids="lorem,epsum" \-\-target\-profile="XXX" \e
\-\-datastream \-\-dataflow \-\-pub\-sub \-\-monitoring
.RE
.SH "REQUIRED FLAGS"
.RS 2m
.TP 2m
\fB\-\-job\-id\fR=\fIJOB_ID\fR
The job Id of an existing migration job.
.TP 2m
\fB\-\-target\-profile\fR=\fITARGET_PROFILE\fR
Flag for specifying connection profile for target database (e.g.,
"dialect=postgresql)".
.RE
.sp
.SH "OPTIONAL FLAGS"
.RS 2m
.TP 2m
\fB\-\-data\-shard\-ids\fR=\fIDATA_SHARD_IDS\fR
Relevant to sharded migrations. Optional comma separated list of data shard Ids,
if nothing is specified, all shards are cleaned up.
.TP 2m
\fB\-\-dataflow\fR
Cleanup dataflow resource(s).
.TP 2m
\fB\-\-datastream\fR
Cleanup datastream resource(s).
.TP 2m
\fB\-\-log\-level\fR=\fILOG_LEVEL\fR
To configure the log level for the execution (INFO, VERBOSE).
.TP 2m
\fB\-\-monitoring\fR
Cleanup monitoring dashboard(s).
.TP 2m
\fB\-\-pub\-sub\fR
Cleanup pubsub resource(s).
.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 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.