Skip to content

Instantly share code, notes, and snippets.

@Aufree
Created June 26, 2017 03:27
Show Gist options
  • Save Aufree/0b83b075e15db3735dfb7f5c8f7a91a0 to your computer and use it in GitHub Desktop.
Save Aufree/0b83b075e15db3735dfb7f5c8f7a91a0 to your computer and use it in GitHub Desktop.
#!/usr/bin/bash
while read repo
do curl -X DELETE -H "Authorization: token GITHUB_TOKEN" "https://api.github.com/repos/$repo"
done < repos.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment