Delete all of your forked repositories on Github.
Reason this release was yanked:
21.1.0
Project description
Fork Purger![](https://pypi-camo.freetls.fastly.net/f7c62eb86b7f56fb3c135650341574a6d54956f0/68747470733a2f2f757365722d696d616765732e67697468756275736572636f6e74656e742e636f6d2f33303032373933322f3133373634373331352d36366136626366322d373634352d343663642d393634642d3466653733373562653330622e706e67)
>> Delete all of your forked repositories on Github <<
Installation
-
Install using pip:
pip install fork-purger
Exploration
-
Create and collect your Github user access token.
-
Inspect the
--help
menu. Run:fork-purger --help
This will print the following:
+-+-+-+-+ +-+-+-+-+-+-+ |F|o|r|k| |P|u|r|g|e|r| +-+-+-+-+ +-+-+-+-+-+-+ Usage: fork-purger [OPTIONS] Options: --username TEXT Your Github username. [required] --token TEXT Your Github access token with delete permission. [required] --debug / --no-debug See full traceback in case of HTTP error. --delete Delete the forked repos. --help Show this message and exit.
-
By default,
fork-purger
runs in dry mode and doesn't do anything other than just listing the repositories that are about to be deleted. Run:fork-purger --username <gh-username> --token <gh-access-token>
You'll see the following output:
+-+-+-+-+ +-+-+-+-+-+-+ |F|o|r|k| |P|u|r|g|e|r| +-+-+-+-+ +-+-+-+-+-+-+ These forks will be deleted: ============================= https://api.github.com/repos/<gh-username>/ddosify https://api.github.com/repos/<gh-username>/delete-github-forks https://api.github.com/repos/<gh-username>/dependabot-core https://api.github.com/repos/<gh-username>/fork-purger
-
To delete the listed repositories, run the CLI with the
--delete
flag:fork-purger --username <gh-username> --token <gh-access-token> --delete
The output should look similar to this:
+-+-+-+-+ +-+-+-+-+-+-+ |F|o|r|k| |P|u|r|g|e|r| +-+-+-+-+ +-+-+-+-+-+-+ Deleting forked repos: ======================= Deleting... https://api.github.com/repos/<gh-username>/ddosify Deleting... https://api.github.com/repos/<gh-username>/delete-github-forks Deleting... https://api.github.com/repos/<gh-username>/dependabot-core Deleting... https://api.github.com/repos/<gh-username>/fork-purger
-
In case of exceptions, if you need more information, you can run the CLI with the
--debug
flag. This will print out the Python stack trace on the stdout.fork-purger --username <gh-username> --token <gh-access-token> --delete --debug
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for fork_purger-21.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1253a7bda01c3ab5f6a4267b136b11fc6c2be7403ae01ad87c54f5de2fb3e464 |
|
MD5 | 6d386449022e51ae46d226cb28f1b860 |
|
BLAKE2b-256 | bf808968948529888f2aa16fc0c657d681a6b100e592b9a239bd494c2d62d371 |