Created
March 2, 2017 13:19
-
-
Save seancheung/9e75fa1fe838a0475a6c9b528b77b9af to your computer and use it in GitHub Desktop.
Delete GitHub repositories
This file contains hidden or 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 | |
# declare an array called array and define 3 vales | |
array=( ) | |
for i in "${array[@]}" | |
do | |
echo "deleting $i..." | |
curl -H 'Authorization: token {$TOKEN}' -X DELETE https://api.github.com/repos/{$USER}/$i | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment