HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
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