Skip to content

Instantly share code, notes, and snippets.

@jottenlips
Last active October 28, 2019 14:41
Show Gist options
  • Select an option

  • Save jottenlips/24cd6e828854a0fecfe85473f1805e7a to your computer and use it in GitHub Desktop.

Select an option

Save jottenlips/24cd6e828854a0fecfe85473f1805e7a to your computer and use it in GitHub Desktop.
Delete GitHub Repos, Use cautiously
repos=(
"user/repo"
"user/repo1"
"user/repo2"
)
for i in "${repos[@]}"
do
:
curl -XDELETE -H 'Authorization: token yourtokenhere' "https://api.github.com/repos/$i ";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment