Last active
October 25, 2017 13:24
-
-
Save show0k/2005e648c190109db310ab600e655a15 to your computer and use it in GitHub Desktop.
Delete Old GitHub repositories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Create a file repo_list.twt with repositories you want to delete separated by a new line like | |
# usename/repo1 | |
# username/repo2 | |
FILE=repo_list.txt | |
# Replace xxx by your token with delete right on https://github.com/settings/tokens | |
while read r; do | |
echo $r | |
curl -XDELETE -H 'Authorization: token xxx' "https://api.github.com/repos/$r " | |
done < "$FILE" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment