Clean up your GitHub account by bulk deleting gists and removing stars.
- Delete all public gists
- Delete all private gists
- Delete all forked gists
- Delete all gists at once
- Unstar all repositories
- Bun installed on your system
- GitHub account with gists or stars you want to clean up
# Clone the repository
git clone https://github.com/yourusername/git-cleanup.git
cd git-cleanup
# Install dependencies
bun installRun the script:
bun startOr directly:
./index.ts- The script will open a link to create a GitHub token
- Create a token with the required permissions
- Paste the token when prompted
- Choose the action to perform:
gists- Delete gistsstars- Unstar repositoriesall- Perform both actions
- If deleting gists, select which type to delete:
public- Delete only public gistsprivate- Delete only private gistsforks- Delete only forked gistsall- Delete all gists
MIT