File: //snap/google-cloud-cli/394/help/man/man1/gcloud_alpha_iam_service-accounts_delete.1
.TH "GCLOUD_ALPHA_IAM_SERVICE\-ACCOUNTS_DELETE" 1
.SH "NAME"
.HP
gcloud alpha iam service\-accounts delete \- delete a service account from a project
.SH "SYNOPSIS"
.HP
\f5gcloud alpha iam service\-accounts delete\fR \fISERVICE_ACCOUNT\fR [\fB\-\-recommend\fR=\fIBOOLEAN_VALUE\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
\fB(ALPHA)\fR If the service account does not exist, this command returns a
\f5PERMISSION_DENIED\fR error.
.SH "EXAMPLES"
To delete an service account from your project, run:
.RS 2m
$ gcloud alpha iam service\-accounts delete \e
my\-iam\-account@my\-project.iam.gserviceaccount.com
.RE
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
\fISERVICE_ACCOUNT\fR
The service account to delete. The account should be formatted either as a
numeric service account ID or as an email, like this: 123456789876543212345 or
my\-iam\-account@somedomain.com.
.RE
.sp
.SH "FLAGS"
.RS 2m
.TP 2m
\fB\-\-recommend\fR=\fIBOOLEAN_VALUE\fR
If true, checks Active Assist recommendation for the risk level of service
account deletion, and issues a warning in the prompt. Optional flag is set to
false by default. For details see
https://cloud.google.com/recommender/docs/change\-risk\-recommendations
.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. These variants are also available:
.RS 2m
$ gcloud iam service\-accounts delete
.RE
.RS 2m
$ gcloud beta iam service\-accounts delete
.RE