Repo Deleter is a command-line tool written in Rust that allows you to list and delete your GitHub repositories in bulk. It uses the GitHub API and requires a personal access token with the appropriate permissions.
- Lists all repositories for the authenticated user
- Allows selection of multiple repositories for deletion
- Deletes selected repositories via the GitHub API
- Rust (latest stable recommended)
- A GitHub personal access token with
repo
anddelete_repo
permissions
- Clone this repository:
git clone https://github.com/Bink-lab/Repo-deleter.git cd Repo-deleter
- Build the project using Cargo:
The compiled binary will be located at
cargo build --release
target\release\repo-deleter.exe
.
- Run the program:
target\release\repo-deleter.exe
- When prompted, enter your GitHub personal access token.
- The tool will list your repositories. Enter the numbers (comma-separated) of the repositories you want to delete.
- Confirm and the tool will attempt to delete the selected repositories.
Enter your GitHub token: <your_token>
Your repositories:
1: repo-one
2: repo-two
3: repo-three
Enter the numbers of the repositories you want to delete (comma-separated): 2,3
Deleting selected repositories...
Successfully deleted repo-two
Successfully deleted repo-three
Pre-built binaries (if available) can be downloaded from the Releases page.
- Go to the Releases page.
- Download the latest release for your platform (e.g.,
repo-deleter.exe
for Windows). - Run the binary as described above.
Warning: Deleting repositories is irreversible. Use this tool with caution. Always double-check your selections before confirming deletion.
Your GitHub token is only used locally to authenticate with the GitHub API. Never share your token with others.