- Create token with repo and delete repo scope, https://github.com/settings/tokens
- Install github command line tools. https://cli.github.com/manual/
- List repos
gh repo list --fork --limit 500 > repos.txt
echo "USER=kliu\nTOKEN=123\n" > clean.sh
cat repos.txt| awk '{printf "curl -XDELETE -u ${USER}:${TOKEN} https://api.github.com/repos/"$1"\n"}' >> clean.sh
Last active
August 13, 2021 04:19
-
-
Save kliu/f29a1c0f1832060de052c73e6e900997 to your computer and use it in GitHub Desktop.
Batch delete repos
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment