Skip to content

Instantly share code, notes, and snippets.

@Developer89899
Created March 27, 2018 20:54
Show Gist options
  • Save Developer89899/2903269cb4f00c7463a8569a117a65ba to your computer and use it in GitHub Desktop.
Save Developer89899/2903269cb4f00c7463a8569a117a65ba to your computer and use it in GitHub Desktop.
Delete all Gists
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()
@Developer89899
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment