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 worked1β error π something went wrong2β command canceled π you (or the prompt) backed out4β 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
- 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