Skip to content

Instantly share code, notes, and snippets.

@jbfriedrich
Last active May 29, 2021 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbfriedrich/ab68fb128e7d8859075743d09293190d to your computer and use it in GitHub Desktop.
Save jbfriedrich/ab68fb128e7d8859075743d09293190d to your computer and use it in GitHub Desktop.
Workaround for "gh delete" until #3625 is implemented
# From https://github.com/cli/cli/issues/3625
# one time:
$ gh alias set delete 'api -X DELETE repos/$1'
$ gh auth refresh -h github.com -s delete_repo
# usage (WARNING: no confirmation!)
$ gh delete user/myrepo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment