Created
March 27, 2018 20:54
-
-
Save Developer89899/2903269cb4f00c7463a8569a117a65ba to your computer and use it in GitHub Desktop.
Delete all Gists
This file contains hidden or 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
from github import Github as git | |
import os | |
g=git("[token]") | |
i=0 | |
for gist in g.get_user().get_gists(): | |
i = i+1 | |
gist.delete() | |
print("{}| Gist {}|| Deleted".format(i, gist.description)) | |
os.system("cls") | |
print("Deleted {} GISTs\nIf more remain, rerun".format(i)) | |
input() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
github = https://github.com/PyGithub/PyGithub