Skip to content

Instantly share code, notes, and snippets.

@hoolymama
Created November 30, 2011 20:29
Show Gist options
  • Save hoolymama/1410680 to your computer and use it in GitHub Desktop.
Save hoolymama/1410680 to your computer and use it in GitHub Desktop.
delete all github repos
for r in `cat repoList.txt`
do
dt=`curl -u "my_username:my_password" https://github.com/api/v2/json/repos/delete/hoolymama/$r | cut -d"\"" -f4`
curl -X POST -u "my_username:my_password" -F "delete_token=$dt" https://github.com/api/v2/json/repos/delete/hoolymama/$r
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment