repo-sweep

Bulk-manage your GitHub repositories.

Select repositories, make them private, archive or delete them, copy the list as JSON. Everything runs in this tab. The token is sent to api.github.com and nowhere else.

Which token
  • Classic token: scopes repo and delete_repo.
  • Fine-grained token: all repositories, permission Administration: read and write.
  • gh CLI: gh auth refresh -h github.com -s repo,delete_repo, then gh auth token prints one.

Without delete_repo everything except Delete works.


  
README

repo-sweep

Bulk-manage the GitHub repositories you own, from one HTML file. No build, no server, no dependencies.

What it does

  • Lists everything you own, public and private
  • Show-only and hide filters that combine; search; sort
  • Select rows, ranges, or whole categories
  • Make private or public, archive, unarchive, delete
  • Peek: files like ls beside the README
  • Copy the keepers as JSON or names
  • Recycle bin with GitHub's 90-day restore steps

Security

  • Your token stays in this browser; sent to api.github.com only
  • No third-party script, font, image or analytics
  • Every destructive action lists the exact repositories first
  • Delete asks you to type the count
  • READMEs render in a sandboxed frame
  • The token never enters a URL
  • Open source, MIT: read the one file you run

Built by

Sidharth, full-stack and Android developer, Hyderabad. sidharth69.in / DevLune, his studio / source on GitHub / hosted page

Recycle bin

Every repository deleted from this page, with what it was. GitHub keeps a deleted repository restorable for about 90 days, but its API cannot list or restore them, so this is the page's own record. This list lives in this browser only.

How to restore one
  1. Open github.com/settings/deleted_repositories (Settings, Repositories, Deleted repositories), signed in as the owner.
  2. Find the repository by name in that list; each row shows the deletion date. It stays there until the date in this bin.
  3. Click Restore, then confirm. GitHub rebuilds it, which can take up to an hour.
  4. Code, branches, issues, pull requests, wiki and settings come back. Release attachments, team permissions and issue labels do not, and a fork whose network still exists cannot be restored.
  5. Reload this page: the repository is back in the list. Remove its bin row with "clear bin" when you are done.
RepositoryDeletedWas