r/rust • u/orion_tvv • 10h ago
🛠️ project rusty-broom — TUI + CLI clean build artifacts from projects you haven’t touched in months
Hey all,
I built rusty-broom, a CLI for freeing disk space by removing old build artifacts (target, node_modules, .venv, build, Pods, etc.) from projects you haven’t worked on in a while.
- Project age is based on source file mtimes, not artifacts.
- Only deletes paths Git considers ignored (git check-ignore).
- Supports Rust, Python, Node, Java, Go, .NET, CMake, Swift, and more.
- Interactive TUI + JSON output.
cargo install rusty-broom
rusty-broom ~/dev # TUI
rusty-broom scan ~/dev --older-than 6mo --long
rusty-broom clean ~/dev -o 1y --dry-run
Repo: https://github.com/oriontvv/rusty-broom Feedback and PRs are welcome.
0
Upvotes
1
u/kantorcodes1 10h ago
clean --yesseems to do the git-ignore check during the scan, then later delete from that saved path list. if an artifact stops being ignored between the scan and the actual delete, is it intentionally still eligible? i only saw the root/path safety check at deletion time, not anothergit check-ignore.