Last active
October 8, 2022 20:52
-
-
Save andymckay/2869c45c8ab4b5d7579e4b923c764ffd to your computer and use it in GitHub Desktop.
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 | |
import os | |
g = Github(os.getenv("GITHUB_TOKEN")) | |
u = g.get_user("....") | |
for repo in u.get_repos(): | |
print(repo.html_url) | |
value = input("Delete y/n?") | |
if value.lower() == "y": | |
print("Deleting: {}".format(repo.html_url)) | |
repo.delete() | |
else: | |
print("..next") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment