gcloud iam service-accounts delete Stay organized with collections Save and categorize content based on your preferences.
- 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 a
PERMISSION_DENIEDerror. - 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 helpfor details. - NOTES
- These variants are also available:
gcloudalphaiamservice-accountsdeletegcloudbetaiamservice-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.