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 thegh auth refresh -s delete_repothing)
π 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
- 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