Skip to content

Follow instructions in the readme to bulk delete your unwanted github repos

Notifications You must be signed in to change notification settings

EdwinJackson/BulkDeleteGithubRepos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Original Idea to: rmkpatchaa

Bulk Delete Github Repos

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 clone this repo
  • Create a personal access token with delete_repo permissions
  • Add names of your repos to the repos file in the format <USER_NAME>/<REPO_NAME>i.e. this repo's name would be EdwinJackson/BulkDeleteGithubRepos
  • Replace ${GITHUB_DELETE_TOKEN} in deleterepos.sh with your own token
  • cd BulkDeleteGithubRepos
  • chmod +x deleterepos.sh
  • ./deleterepos.sh
  • check your github page

Creating a delete_repo token

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)

About

Follow instructions in the readme to bulk delete your unwanted github repos

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages