Skip to content

Instantly share code, notes, and snippets.

@udomsak
Last active April 11, 2019 07:35
Show Gist options
  • Save udomsak/bff4e2161c8520af792f1e63ca53766c to your computer and use it in GitHub Desktop.
Save udomsak/bff4e2161c8520af792f1e63ca53766c to your computer and use it in GitHub Desktop.
Bulk remove folks repositories
#!/usr/bin/env python
from github import Github
#https://github.com/settings/tokens
g = Github("4a3d3c5ba12e402015dcdcf55c312e0614xxxxx888s")
folks_repo = [ repo for repo in g.get_user().get_repos() if repo.fork == True]
for repo in folks_repo:
repo.delete()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment