Skip to content

Instantly share code, notes, and snippets.

@seancheung
Created March 2, 2017 13:19
Show Gist options
  • Save seancheung/9e75fa1fe838a0475a6c9b528b77b9af to your computer and use it in GitHub Desktop.
Save seancheung/9e75fa1fe838a0475a6c9b528b77b9af to your computer and use it in GitHub Desktop.
Delete GitHub repositories
#!/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