Remove your unneccessary forks from github
A blogpost on medium.com gave me the idea to do this in a more safe and easier way.
Requires python 3
- pip3 install --user PyGithub
- git clone https://github.com/bebehei/fork-cleanup && cd fork-cleanup
- cp credentials.txt.template credentials.txt
- $EDITOR credentials.txt
- You have to fill either:
AUTH_TOKENAUTH_USERandAUTH_PASS
- If you want to generate a token, you have to create in you profile settings a new one. This token has to have the
delete_reposcope.
- You have to fill either:
- ./cleanup
- If you're not sure about this, you can also use the
--dryoption. - The
-voption is also useful.
- If you're not sure about this, you can also use the
If you use two factor auth, you have to use a token. Any other possibility won't work.