Original Idea to: rmkpatchaa
Cleaning up your Github account of old, and unused repos can be very tedious. Using this code you can delete multiple repos very quickly!
git clonethis repo- Create a personal access token with
delete_repopermissions - Add names of your repos to the
reposfile in the format<USER_NAME>/<REPO_NAME>i.e. this repo's name would beEdwinJackson/BulkDeleteGithubRepos - Replace
${GITHUB_DELETE_TOKEN}indeleterepos.shwith your own token cd BulkDeleteGithubReposchmod +x deleterepos.sh./deleterepos.sh- check your github page
Profile Settings > Personal Access Tokens > Check delete_repo > Add description > Click Generate Token > Place token in deleterepos.sh where ${GITHUB_DELETE_TOKEN} is (replace ${} as well)