GH-REPO-DELETE(1)

πŸ’… gh-repo-delete β€” the "okay bestie, we're really doing this" manual page πŸ—‘οΈβœ¨

So you wanna delete a repo?? Bold. Iconic. Potentially devastating. This is the gh-repo-delete page from the GitHub CLI manual, and yes it's short, but it's also load-bearing, so let's read it together 🫢


✨ SYNOPSIS ✨

gh repo delete [<repository>] [flags]

That's it. That's the whole vibe. One optional repo, some flags, and a dream πŸ’­


🌸 DESCRIPTION 🌸

Delete a GitHub repository. Yep. For real. No cap. 😭

No argument passed? Then it deletes the current repository. Passed an argument? Then it deletes that repository instead. Simple as πŸ’…

⚠️ Safety moment, and this part is important, bestie β€” when you don't provide a repository argument, the --yes flag is ignored and you will be prompted for confirmation. Like, the tool literally refuses to let you speedrun your own destruction from inside the repo. Respect, honestly.

So if you want to delete the current repository non-interactively, you have to spell it out explicitly, like:

gh repo delete owner/repo --yes

Deletion requires authorization with the delete_repo scope. Don't have it? Get it with:

gh auth refresh -s delete_repo

πŸŽ€ OPTIONS πŸŽ€

  • --yes β€” confirm the deletion without prompting. Yes, you're sure. Yes, you mean it. πŸ’€

πŸ”₯ EXIT CODES πŸ”₯

  • 0 β€” successful execution πŸ‘‘ (slay, it's gone)
  • 1 β€” error 😬
  • 2 β€” command canceled πŸ™ˆ (you backed out, and honestly? valid)
  • 4 β€” authentication required πŸ” (go do the gh auth refresh -s delete_repo thing)
πŸ“Œ NOTE: specific commands may have additional exit codes. Refer to the command's help for more information. iykyk 🌈

πŸ¦‹ SEE ALSO πŸ¦‹

  • gh-repo(1) β€” the rest of the repo-adjacent lore, go read it 🧚

okay that's the whole page, mwah πŸ’– this was the GitHub CLI manual, gh-repo-delete, version v2.102.0, dated Oct 2026 β€” go forth, delete responsibly, and maybe double-check which repo you're in first, bestie πŸ“ πŸŽ€ ⭐

πŸ“¦ where this page comes from