GH-GPG-KEY-DELETE(1)
π gh-gpg-key-delete(1) β like, the GitHub CLI manual, bestie edition β¨
okay so real talk: this one lives in the GitHub CLI manual, and it's your little cleanup crew for GPG keys. buckle up π
πΈ NAME πΈ
gh-gpg-key-delete β deletes a GPG key from your GitHub account. yes, that kind of delete. gone. bye. ππ
β¨ SYNOPSIS β¨
gh gpg-key delete <key-id> [flags]
so you hand it a <key-id>, it nukes that key off your account. flags are optional but honestly the one flag below is your bestie fr fr π«Ά
π OPTIONS π
-y,--yesβ skips the confirmation prompt. no "are you sure??" moment, no emotional support question, it just goes. use it when you're confident (or when you're scripting and there's literally nobody there to typeyπ).
β οΈ heads up bestie: without-yyou get a confirmation prompt. with-yyou don't. that's the whole vibe check. choose wisely π
π EXIT CODES π
like the receipts for how it went:
0β Successful execution β¨ slay, it worked1β Error π something went sideways2β Command canceled π you (or the prompt) backed out4β Authentication required π GitHub needs to know it's really you first
π NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. (iykyk β always check the help if a number looks unfamiliar π)
π¦ SEE ALSO π¦
gh-gpg-key(1)β the whole GPG key family, go say hi π§
okay that's the page!! and for the cute sign-off: this one's from GitHub CLI v2.102.0, dated Oct 2026, and yeah it's still got that same GH-GPG-KEY-DELETE(1) energy at the top and bottom of the real thing π stay safe out there and don't delete a key you actually need, mwah πβ
π¦ where this page comes from
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms