Skip to content

Instantly share code, notes, and snippets.

@jbfriedrich
Last active May 29, 2021 15:04
Show Gist options
  • 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