File: //snap/google-cloud-cli/396/help/man/man1/gcloud_beta_monitoring_metrics-scopes_delete.1
.TH "GCLOUD_BETA_MONITORING_METRICS\-SCOPES_DELETE" 1
.SH "NAME"
.HP
gcloud beta monitoring metrics\-scopes delete \- delete a monitored project in a metrics scope
.SH "SYNOPSIS"
.HP
\f5gcloud beta monitoring metrics\-scopes delete\fR \fIMONITORED_RESOURCE_CONTAINER_NAME\fR [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
\fB(BETA)\fR This command can fail for the following reasons:
.RS 2m
.IP "\(bu" 2m
The projects specified do not exist.
.IP "\(bu" 2m
The active account does not have permission to access one of the given project.
.RE
.sp
More details can be found at
https://cloud.google.com/monitoring/api/ref_v3/rest/v1/locations.global.metricsScopes.projects/delete
.SH "EXAMPLES"
The following command adds a monitored project with the ID
\f5monitored\-project\-1\fR to a metrics scope with project id
\f5metrics\-scope\-1\fR assuming the \f5metrics\-scope\-1\fR is the default
project:
.RS 2m
$ gcloud beta monitoring metrics\-scopes delete \e
projects/monitored\-project\-1
.RE
The following command adds a monitored project with the ID
\f5monitored\-project\-1\fR to a metrics scope with project id
\f5metrics\-scope\-1\fR:
.RS 2m
$ gcloud beta monitoring metrics\-scopes delete \e
projects/monitored\-project\-1 \-\-project=metrics\-scope\-1
$ gcloud beta monitoring metrics\-scopes delete \e
locations/global/metricsScopes/metrics\-scope\-1/projects/\e
monitored\-project\-1
.RE
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
\fIMONITORED_RESOURCE_CONTAINER_NAME\fR
Monitored resource container (example \- projects/PROJECT_ID) project you want
to delete.
.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. This variant
is also available:
.RS 2m
$ gcloud alpha monitoring metrics\-scopes delete
.RE