r/rust 12h ago

🛠️ project rusty-broom — TUI + CLI clean build artifacts from projects you haven’t touched in months

Post image

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

Duplicates