← IAM426 / 640
hardgcloud

Delete a custom IAM role from a project (can be undeleted within 7 days)

command

gcloud iam roles delete ROLE_ID --project PROJECT_ID

also accepted

gcloud iam roles delete

Command breakdown

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

gcloudiamrolesdeleteROLE_ID--projectPROJECT_ID
FlagPurpose
--projectBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →