📖Github Bulk Delete Repos

Dependency

  • gh

  • jq

Script

The script deletes all the repositories without any manual intervention:

for repo in `gh repo list -L 999 --json name | jq '.[] | .name' | awk '{print $1}'` ; do
  gh repo delete --yes $repo
done