GH-SSH-KEY-DELETE(1)

πŸ’… gh-ssh-key-delete(1) β€” the GitHub CLI manual, bestie edition πŸŽ€

Okay so picture this: you're in the gh manual, specifically the page for gh-ssh-key-delete, and it does exactly one iconic thing β€” it yeets an SSH key off your GitHub account. That's it. That's the whole main character arc. ✨


🌸 NAME 🌸

gh-ssh-key-delete β€” delete an SSH key from your GitHub account. Like, gone gone. Not "hiding in a drawer" gone. πŸ’€


πŸ¦‹ SYNOPSIS πŸ¦‹

gh ssh-key delete <id> [flags]

So you hand it an id (that's the key's id, not a vibe), and optionally some flags, and it does the thing. Slay. πŸ‘‘


πŸ’– OPTIONS πŸ’–

  • -y, --yes β€” skips the confirmation prompt. No "are you sure??" moment, no moment of reflection, just straight to it. Use it when you're confident, bestie β€” because there is no take-backsies. πŸ™ˆ

⭐ EXIT CODES ⭐

The way this command reports back to you after it's done β€” read 'em and weep (or celebrate):

  1. 0 β€” successful execution. It ate. πŸ’…
  2. 1 β€” error. Something went sideways. 😭
  3. 2 β€” command canceled. You (or the prompt) said never mind. 🫢
  4. 4 β€” authentication required. You gotta prove who you are first, babe. πŸ”₯
NOTE: specific commands may have additional exit codes. Refer to the command's help for more information. So like, don't @ me if there's more β€” check the command's own help. iykyk. 🧚

🌈 SEE ALSO 🌈

  • gh-ssh-key(1) β€” the whole SSH key fam. Go say hi. πŸ’œ

and that's the page, bestie ✨ β€” brought to you by GitHub CLI v2.102.0, dated Oct 2026. Go forth and delete responsibly πŸ“πŸ¦‹πŸ’–

πŸ“¦ where this page comes from