File: //snap/google-cloud-cli/current/help/man/man1/gcloud_iam_service-accounts_keys_delete.1
.TH "GCLOUD_IAM_SERVICE\-ACCOUNTS_KEYS_DELETE" 1
.SH "NAME"
.HP
gcloud iam service\-accounts keys delete \- delete a service account key
.SH "SYNOPSIS"
.HP
\f5gcloud iam service\-accounts keys delete\fR \fIKEY\-ID\fR \fB\-\-iam\-account\fR=\fIIAM_ACCOUNT\fR [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
If the service account does not exist, this command returns a
\f5PERMISSION_DENIED\fR error.
.SH "EXAMPLES"
To delete a key with ID \f5b4f1037aeef9ab37deee9\fR for the service account
\f5my\-iam\-account@my\-project.iam.gserviceaccount.com\fR, run:
.RS 2m
$ gcloud iam service\-accounts keys delete b4f1037aeef9ab37deee9 \e
\-\-iam\-account=my\-iam\-account@my\-project.iam.gserviceaccount.com
.RE
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
\fIKEY\-ID\fR
The key to delete.
.RE
.sp
.SH "REQUIRED FLAGS"
.RS 2m
.TP 2m
\fB\-\-iam\-account\fR=\fIIAM_ACCOUNT\fR
The service account from which to delete a key.
To list all service accounts in the project, run:
.RS 2m
$ gcloud iam service\-accounts list
.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 iam service\-accounts keys delete
.RE
.RS 2m
$ gcloud beta iam service\-accounts keys delete
.RE