can repos get deleted with redact in bulk?
redact mass deletes comments, stars, follows, and gists. if you want to delete your repos read this guide.
If youâre trying to wipe a bunch fast, youâve got a few real options:
-
Archive instead (way safer) makes them basically âgoneâ from view but you can undo it if you panic later lol
-
GitHub CLI: easiest way to bulk manage stuff without clicking 200 times
-
API script: if you want rules like âdelete everything with prefix
test-â or âolder than 2022â or whatever
Before you go full send:
-
if any of these are org repos you might not even have permission or the org can block deletes
-
maybe do an archive pass first and then wait a day then delete once youâre sure you didnât just yeet something important
you ever heard of repo reaper? Iâve never used it but have heard good things about it, itâs made specifically to remove repos in bulk: https://reporeaper-frontend.onrender.com/
it was just released in Aug of 25â, so not much feedback about it yet. if you decide to use it report back on how you like it, I am curious.
doesnt github allow for mass repo delting, like as a native feature within github admin? I believe they do. although, the fact someone made repo reaper maybe points to the contrary. I donât know, Iâm not a big github user.
No, @D-Mag is wrong actually. There are no mass delete options within github, you gotta use a 3rd party app.
I have personally used https://reposweeper.com/ and it worked as intended. They also have repo reaper, linked up above in triggerâs post.
Read this: Bulk delete github repos ¡ GitHub
Use this trick to bulk delete your old repos or old forks
(Inspired by https://medium.com/@icanhazedit/clean-up-unused-github-rpositories-c2549294ee45#.3hwv4nxv5)
Open in a new tab all to-be-deleted github repositores (Use the mouseâs middle click or Ctrl + Click) https://github.com/username?tab=repositories
Use one tab https://chrome.google.com/webstore/detail/onetab/chphlpgkkbolifaimnlloiipkdnihall to shorten them to a list.
Save that list to some path
The list should be in the form of âur_username\repo_nameâ per line. Use regex search (Sublime text could help). Search for â |.*â and replace by empty.
Register a new personal access token with a âdelete_repo permâ https://github.com/settings/tokens/new
Copy the access_token and run the following line replacing xxx with your access token.
Linux and OS X :
while read r;do curl -XDELETE -H 'Authorization: token xxx' "https://api.github.com/repos/$r ";done < reposWindows:
get-content D:\repolist.txt | ForEach-Object { Invoke-WebRequest -Uri https://api.github.com/repos/$_ -Method âDELETEâ -Headers @{"Authorization"="token xxx"} }Caution
I have only tested this script on Linux.
fyi there is also a browser extension for deleting the repos https://chromewebstore.google.com/detail/npleadnddajjokllpjmpkekijopogeci?utm_source=item-share-cb
Iâve used that browser extension, it does what it says it does.
Pretty sure Redact canât bulk delete repos atm, it mainly handles stuff like stars, follows, comments, and gists.
If youâre trying to wipe a bunch of repos without 200 clicks, the least painful route is the GitHub CLI (gh) or the API. Iâd honestly do a quick âarchive everythingâ pass first then sleep on it and only delete if youâre 100% sure youâre not about to wipe something important that youâll regret.
GitHub really said âsure you can delete it⌠just type the repo name like you mean itâ for every single one.
If youâre doing a purge, the low-regret move is: make them private + archive first instant profile cleanup, then batch-delete later with the GitHub CLI once youâre positive youâre not deleting the one repo that still has your SSH config from 2019.
Like other users have already mentioned, we donât currently support repo deletion. Just likes, comments, stars, follows and gists. All the info on our deletion service for Github is here: Mass Delete Comments, Stars, Follows, & Gists in Github | Redact