Skip to content

Instantly share code, notes, and snippets.

@brianherman
brianherman / delete.py
Last active June 4, 2018 22:42
delete github
#pip install pygithub
#python delete.py <username> <token>
#https://github.com/settings/tokens
#Create a token with delete permission and all other repo permission
#https://i.imgur.com/1mrTjTJ.png
import sys
from github import Github
username = sys.argv[1]
token = sys.argv[2]
g = Github(username, token)