Mass delete your GitHub repositories.
The delete action cannot be undone. It will permanently delete your specified repository, wiki, issues, comments, packages, secrets, workflow runs, and remove all collaborator associations.
To get started, you need to create a new Github PAT with repo
and delete_repo
permissions:
The repo
permission is required to list your private repositories.
and the delete_repo
permission is required to delete the repositories you choose.
Copy the created PAT token and export as an environment variable:
export GITHUB_USERNAME=my_username
export GITHUB_PAT=my_pat_token
Get help
$ fictional-tribble --help
Usage: fictional-tribble [OPTIONS]
Options:
-f, --file TEXT File containing line-separated repository names
-y Skip delete verification
--help Show this message and exit.
Manually select the repositories you want to delete by running without any flags:
$ fictional-tribble
username/repo-test: Toy repo, felt cute, might delete later
Delete? (y/N): y
username/repo-of-code: Code solutions
Delete? (y/N): no
(forked) username/repo1: A Quiz/Game app
Delete? (y/N): n
(forked) username/repo-one: A one-off script
Delete? (y/N): yes
(forked) username/awesome-repo: List of awesome repos!
Delete? (y/N): no
Please verify you want to delete these repositories:
repo-test repo-one [y/N]: y
Deleting repo-test...
Deleting repo-one...
You can also specify a file containing names of repositories to be deleted. Here's an example:
$ cat todelete.txt
repo-test
repo-one
$ fictional-tribble -f todelete.txt
Please verify you want to delete these repositories:
repo-test repo-one [y/N]: y
Deleting repo-test...
Deleting repo-one...
I assume no responsibility or liability for any data loss caused by the misuse or misbehaviour of this program. Use at your own peril.