Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
NOMBRE
gdcloud iam service-accounts keys delete: Borra una clave pública de una cuenta de servicio.
SINOPSIS
gdcloud iam service-accounts keys delete KEY_ID [flags]
DESCRIPCIÓN
Si borras una clave pública de la cuenta de servicio de un proyecto, la clave privada asociada dejará de ser válida. Se debe proporcionar el ID de la clave pública. Puedes ejecutar el comando "gcloud iam service-accounts keys list" para enumerar el ID de todas las claves públicas de una cuenta de servicio.
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
MARCAS OBLIGATORIAS
--iam-account string Project's service account to delete the public key from. The flag is required to run the command.
MARCAS GENERALES DE GCLOUD
Estas marcas están disponibles para todos los comandos: --configuration, --format, --help, --project y --quiet.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-04 (UTC)"],[[["\u003cp\u003eThis command \u003ccode\u003egdcloud iam service-accounts keys delete\u003c/code\u003e is used to delete a public key from a specified ProjectServiceAccount.\u003c/p\u003e\n"],["\u003cp\u003eThe command requires the \u003ccode\u003e--iam-account\u003c/code\u003e flag to specify the ProjectServiceAccount name.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003e--project\u003c/code\u003e flag can be used to select the project, but it is optional if a project has been set using \u003ccode\u003egdcloud init\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eTo execute the command, you must specify the key-id to delete and the ProjectServiceAccount the key is associated with.\u003c/p\u003e\n"]]],[],null,["# gdcloud iam service-accounts keys delete\n\nNAME\n----\n\ngdcloud iam service-accounts keys delete - Delete a public key from a service account.\n\nSYNOPSIS\n--------\n\n gdcloud iam service-accounts keys delete KEY_ID [flags]\n\nDESCRIPTION\n-----------\n\nDelete 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.\n\n### EXAMPLES\n\n\n To delete a public key with ID \"ab98fa9a-dae0-401f\" from service account \"psa-test\" in project \"iam-test\", run:\n\n gdcloud iam service-accounts keys delete ab98fa9a-dae0-401f --iam-account=psa-test --project=iam-test\n\n### REQUIRED FLAGS\n\n --iam-account string Project's service account to delete the public key from. The flag is required to run the command.\n\n### GDCLOUD WIDE FLAGS\n\nThese flags are available to all commands: `--configuration`, `--format`, `--help`, `--project`, `--quiet`.\n\nFor more information, see the [gdcloud CLI reference overview](/distributed-cloud/hosted/docs/latest/appliance/resources/gdcloud-reference/gdcloud) page."]]