File: //snap/google-cloud-cli/current/help/man/man1/gcloud_compute_project-zonal-metadata_remove.1
.TH "GCLOUD_COMPUTE_PROJECT\-ZONAL\-METADATA_REMOVE" 1
.SH "NAME"
.HP
gcloud compute project\-zonal\-metadata remove \- remove project zonal metadata
.SH "SYNOPSIS"
.HP
\f5gcloud compute project\-zonal\-metadata remove\fR \fB\-\-zone\fR=\fIZONE\fR [\fB\-\-all\fR\ |\ \fB\-\-keys\fR=\fIKEY\fR,[\fIKEY\fR,...]] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
\fBgcloud compute project\-zonal\-metadata remove\fR is used to remove project
zonal metadata from all VMs within the specified zone. For information about
metadata, see https://cloud.google.com/compute/docs/metadata.
Only the metadata keys that you provide in the command get removed. All other
existing metadata entries remain the same.
After you remove a specific project zonal metadata entry, if that metadata key
has any project\-wide value configured, then the VMs in the zone automatically
inherit that project\-wide value.
.SH "EXAMPLES"
To remove the project zonal metadata with key=value in the zone
\f5\fIus\-central1\-a\fR\fR for the project \f5\fImy\-gcp\-project\fR\fR, run:
.RS 2m
$ gcloud compute project\-zonal\-metadata remove \-\-keys=key \e
\-\-zone=us\-central1\-a \-\-project=my\-gcp\-project
.RE
For more information and examples about how to remove project zonal metadata,
see
https://cloud.google.com/compute/docs/metadata/setting\-custom\-metadata#remove\-custom\-project\-zonal\-metadata
.SH "REQUIRED FLAGS"
.RS 2m
.TP 2m
\fB\-\-zone\fR=\fIZONE\fR
The zone in which you want to remove project zonal metadata
.RE
.sp
.SH "OPTIONAL FLAGS"
.RS 2m
.TP 2m
At most one of these can be specified:
.RS 2m
.TP 2m
\fB\-\-all\fR
If provided, all project zonal metadata entries are removed from VM instances in
the zone.
.TP 2m
\fB\-\-keys\fR=\fIKEY\fR,[\fIKEY\fR,...]
The keys for which you want to remove project zonal metadata
.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"
These variants are also available:
.RS 2m
$ gcloud alpha compute project\-zonal\-metadata remove
.RE
.RS 2m
$ gcloud beta compute project\-zonal\-metadata remove
.RE