Created
February 5, 2020 09:54
-
-
Save timvw/f68c1b1097f632890e54be0c95e47a01 to your computer and use it in GitHub Desktop.
Cleanup 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
# get token from https://github.com/settings/tokens (repo and delete_repo permissions) | |
export TOKEN="" | |
curl -H "Authorization: token $TOKEN" https://api.github.com/user/repos | \ | |
jq '.[].full_name' | \ | |
grep demo | \ | |
gxargs -I '{}' curl -H "Authorization: token $TOKEN" -X DELETE https://api.github.com/repos/'{}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment