GH-GIST-DELETE(1)

πŸ’… GH-GIST-DELETE(1) β€” the GitHub CLI manual, bestie edition πŸŽ€

okay so you want to delete a gist. iconic. let's get into it ✨ (this is the gh-gist-delete page from the GitHub CLI manual, and yes i'm gonna hold your hand through every bit of it 🫢)


🌸 NAME 🌸

gh-gist-delete β€” literally just: delete a gist πŸ’€


✨ SYNOPSIS ✨

gh gist delete {<id> | <url>} [flags]

so it's gh gist delete and then either the id or the url, and flags are optional, mwah πŸ’–


πŸ¦‹ DESCRIPTION πŸ¦‹

You're deleting a GitHub gist. That's the whole vibe. Poof, gone 🧚

Wanna do it interactively? Just run gh gist delete with no arguments at all and it'll walk you through it, no cap πŸ™ˆ

Wanna do it non-interactively (aka you already know exactly what you're doing, main character energy)? Then supply the gist id or url and it just goes πŸ”₯


πŸ’… OPTIONS πŸ’…

  • --yes β€” confirms the deletion without prompting you. no little "are you sure?" moment, it just sends it. use it when you're certain, bestie πŸ‘‘

🌈 EXIT CODES 🌈

vibe check results, lowkey:

  • 0 β€” successful execution ⭐ slay, it worked
  • 1 β€” error 😭 something went wrong
  • 2 β€” command canceled πŸ™ˆ you (or the prompt) backed out
  • 4 β€” authentication required πŸ” like, log in first babes
NOTE: specific commands may have additional exit codes. refer to the command's help for more info, iykyk πŸ’œ

πŸ“ EXAMPLE πŸ“

# Delete a gist interactively
$ gh gist delete

# Delete a gist non-interactively
$ gh gist delete 1234

first one's the chill "let me ask you some stuff" version, second one's the "i know the id, i'm built different" version πŸ’…βœ¨


πŸ‘‘ SEE ALSO πŸ‘‘

  • gh-gist(1) β€” the whole gist family, go say hi 🫢

and that's the tea πŸŽ€ this lil masterpiece is from GitHub CLI v2.102.0, dated Oct 2026 β€” periodt πŸ’–

πŸ“¦ where this page comes from