hardgcloud

Revoke and delete a specific service account key by its ID

command

gcloud iam service-accounts keys delete KEY_ID --iam-account SA_EMAIL

also accepted

gcloud iam service-accounts keys delete

Command breakdown

Part of the Google Cloud CLI (gcloud) — IAM & Service Accounts category.

gcloudiamservice-accountskeysdeleteKEY_ID--iam-accountSA_EMAIL
FlagPurpose
--iam-accountBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →