File: //snap/google-cloud-cli/current/help/man/man1/gcloud_beta_iam_service-accounts_delete.1
.TH "GCLOUD_BETA_IAM_SERVICE\-ACCOUNTS_DELETE" 1
.SH "NAME"
.HP
gcloud beta iam service\-accounts delete \- delete a service account from a project
.SH "SYNOPSIS"
.HP
\f5gcloud beta iam service\-accounts delete\fR \fISERVICE_ACCOUNT\fR [\fB\-\-recommend\fR=\fIBOOLEAN_VALUE\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
\fB(BETA)\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 beta 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 beta and might change without notice. These
variants are also available:
.RS 2m
$ gcloud iam service\-accounts delete
.RE
.RS 2m
$ gcloud alpha iam service\-accounts delete
.RE