Stay organized with collections
Save and categorize content based on your preferences.
NAME
gdcloud iam service-accounts keys delete - Delete a public key from a service account.
SYNOPSIS
gdcloud iam service-accounts keys delete KEY_ID [flags]
DESCRIPTION
Delete a public key from a project's service account, and the associated private key becomes invalid. The ID of the public key must be provided. You can run command "gdcloud iam service-accounts keys list" to list the ID of all the public keys from a service account.
EXAMPLES
To delete a public key with ID "ab98fa9a-dae0-401f" from service account "psa-test" in project "iam-test", run:
gdcloud iam service-accounts keys delete ab98fa9a-dae0-401f --iam-account=psa-test --project=iam-test
REQUIRED FLAGS
--iam-account string Project's service account to delete the public key from. The flag is required to run the command.
GDCLOUD WIDE FLAGS
These flags are available to all commands: --configuration, --format, --help, --project, --quiet.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-25 UTC."],[[["This command deletes a specified public key from a project's service account, rendering the corresponding private key invalid."],["The `KEY_ID` of the public key to be deleted is required and can be obtained using the `gdcloud iam service-accounts keys list` command."],["The `--iam-account` flag is mandatory and specifies the service account from which the public key should be deleted."],["The command requires a specified key id as well as the service account it is attached to in order to operate."],["An example command to delete a key is provided, showing all necessary syntax and flags to do so."]]],[]]