# How do you clean up stale branches, old PRs, and dead repos across a whole GitHub org? — retained record

> Retained reddit record from reddit:devops.

Canonical: https://highsignal.app/data/records/b5d7eec1f107f9f8

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:devops)  published 2026-10-31 09:47 ingested 2026-11-01 02:37

[original source ↗](https://www.reddit.com/r/devops/comments/1xk62rx/how_do_you_clean_up_stale_branches_old_prs_and/)

## retained text



```
I manage a lot of repos, that are changed by multiple devs and every few months it turns into a mess: hundreds of merged branches nobody deleted, PRs that went quiet a year ago, repos nobody has touched since a project ended. GitHub only lets me deal with it one repo at a time, so mostly I just... don't.



Curious how others handle this:



\- Do you run a script (gh CLI, an Action), use a tool, or just ignore it?

\- What's the most annoying part?

\- What would you never trust a tool to do automatically?



Especially interested in hearing from people managing 30+ repos or a team org.
```



document fetched 2026-11-01 00:24 · canonical https://reddit.com/r/devops/comments/1xk62rx/how_do_you_clean_up_stale_branches_old_prs_and
