GH-ISSUE-DELETE(1)

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

okay so real talk, this is the gh-issue-delete page from the GitHub CLI manual, and yes it does exactly what it says on the tin. we're deleting an issue. gone. poof. ✨


🌸 NAME 🌸

gh-issue-delete β€” literally just delete issue. that's the whole vibe. no cap. πŸ’€


πŸ¦‹ SYNOPSIS πŸ¦‹

gh issue delete {<number> | <url>} [flags]

so you give it either a <number> or a <url>, and honestly bestie, pick one, you don't need both. then optionally some [flags] because we love options. πŸ‘‘


✨ OPTIONS ✨

  • --yes β€” confirms the deletion without prompting you. it's giving "I said what I said" energy β€” no little "are you sure tho?" moment, it just goes. use it when you're confident (or reckless, no judgement 🫢).

πŸ‘‘ OPTIONS INHERITED FROM PARENT COMMANDS πŸ‘‘

these ones come down from the parent command, like hand-me-downs but actually useful:

  • -R, --repo <[HOST/]OWNER/REPO> β€” picks a whole different repository, using the [HOST/]OWNER/REPO format. so like, HOST is optional, then OWNER/REPO. main character energy for people with a million repos fr fr. πŸ’–

🌈 EXIT CODES 🌈

the vibes check of "how did it go":

  • 0: Successful execution β€” slay, it worked, we ate. ✨
  • 1: Error β€” something went wrong, it's giving sad girl hours 😭
  • 2: Command canceled β€” you (or something) hit the brakes. no delete today. πŸ™ˆ
  • 4: Authentication required β€” you gotta log in first, bestie, they don't know you like that πŸ”₯
NOTE: specific commands may have additional exit codes. refer to the command's help for more information. iykyk πŸ’…

πŸ’œ SEE ALSO πŸ’œ

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

okay that's the page!! this lil doc is from GitHub CLI v2.102.0, dated Oct 2026. go forth and delete responsibly, mwah πŸ“πŸ’–

πŸ“¦ where this page comes from