Deleting API keys
CLI
API
-
View the list of API keys for the service account by entering the account name (for example,
my-robot
):$ yc iam api-key list --service-account-name my-robot
The folder specified in the CLI profile is used by default to search for the service account. You can specify a different folder using the
--folder-name
or--folder-id
flag. -
Delete the API key by specifying its ID:
$ yc iam api-key delete <API-KEY-ID>