gcloud secrets delete my-api-key

Category: Google Cloud & Workspace

gcloud secrets delete my-api-key

Delete a secret and all its versions

Schedules the secret for deletion with a 30-day grace period, during which it can be restored with gcloud secrets undelete. Applications reading the secret fail once deletion completes, so update them first. There is no undo after the grace period ends.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.