gcloud iam service-accounts delete

NAME
gcloud iam service-accounts delete - delete a service account from a project
SYNOPSIS
gcloud iam service-accounts deleteSERVICE_ACCOUNT[GCLOUD_WIDE_FLAG]
DESCRIPTION
If the service account does not exist, this command returns aPERMISSION_DENIED error.
EXAMPLES
To delete an service account from your project, run:
gcloudiamservice-accountsdeletemy-iam-account@my-project.iam.gserviceaccount.com
POSITIONAL ARGUMENTS
SERVICE_ACCOUNT
The service account to delete. The account should be formatted either as anumeric service account ID or as an email, like this: 123456789876543212345 ormy-iam-account@somedomain.com.
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$gcloud help for details.

NOTES
These variants are also available:
gcloudalphaiamservice-accountsdelete
gcloudbetaiamservice-accountsdelete

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-07 UTC.