Last active
April 11, 2019 07:35
-
-
Save udomsak/bff4e2161c8520af792f1e63ca53766c to your computer and use it in GitHub Desktop.
Bulk remove folks repositories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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