{"id":13941684,"url":"https://github.com/yangshun/delete-github-forks","last_synced_at":"2025-05-05T22:00:20.661Z","repository":{"id":43174682,"uuid":"105230369","full_name":"yangshun/delete-github-forks","owner":"yangshun","description":"🍴 Bulk delete your GitHub forks in two simple steps!","archived":false,"fork":false,"pushed_at":"2024-03-17T00:41:32.000Z","size":23,"stargazers_count":214,"open_issues_count":3,"forks_count":38,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-27T10:36:15.767Z","etag":null,"topics":["delete","forks","github","github-forks","open-source"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yangshun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-29T04:37:53.000Z","updated_at":"2024-11-27T05:19:22.000Z","dependencies_parsed_at":"2024-03-17T03:02:13.108Z","dependency_job_id":null,"html_url":"https://github.com/yangshun/delete-github-forks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangshun%2Fdelete-github-forks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangshun%2Fdelete-github-forks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangshun%2Fdelete-github-forks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangshun%2Fdelete-github-forks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yangshun","download_url":"https://codeload.github.com/yangshun/delete-github-forks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252584326,"owners_count":21771944,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["delete","forks","github","github-forks","open-source"],"created_at":"2024-08-08T02:01:24.692Z","updated_at":"2025-05-05T22:00:20.625Z","avatar_url":"https://github.com/yangshun.png","language":"JavaScript","readme":"# Delete GitHub Forks\n\nDelete your forked GitHub repositories easily in two steps (takes less than 5 minutes).\n\n## Motivation\n\nDeleting GitHub repositories via the GitHub interface is a hassle; you have to enter your password followed by the name of the repository. This is not scalable if you contribute to open source a fair bit and have many forked repositories that you may not necessarily want to keep.\n\nUsing these scripts, you can fetch a list of your GitHub repositories and delete all the unwanted repositories in one go.\n\n## Getting Started\n\nClone this repository.\n\n```\n$ npm install\n$ cp src/config.json.example src/config.json\n```\n\nAdd your GitHub username and access token to `config.json`. To get the access token, go to [this page](https://github.com/settings/tokens/new) and create a token that has the following permissions: `public_repo` and `delete_repo`.\n\n## Usage\n\nFirstly, run the following command to fetch all your forked repositories.\n\n```sh\n$ npm run fetch # Writes to a src/repos.json file\n```\n\nA JSON file, `src/repos.json` containing an array of your repositories will be written into the same directory. Manually inspect it and remove the forked repositories that you want to keep. **The repositories that remain inside `src/repos.json` will be deleted on the next command. It is an irreversible operation. Use with great caution!**.\n\n```sh\n$ npm run delete # Reads from src/repos.json and deletes the repos inside it.\n```\n\nAnd all the repositories within `src/repos.json` will be deleted! It's that easy.\n\nThe scripts can be potentially modified to work on an organization's repositories as well just by changing the URLs. Pull requests to support this feature are welcome.\n\n## License\n\nMIT\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyangshun%2Fdelete-github-forks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyangshun%2Fdelete-github-forks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyangshun%2Fdelete-github-forks/lists"}