projclean
v1.0.0
Published
Interactive CLI to detect and clean Gradle build/ and Maven target/ folders
Maintainers
Readme
projclean
Interactive TUI to reclaim disk space by finding and cleaning build/ (Gradle) and target/ (Maven) folders across all your JVM projects. Scans up to 8 directory levels deep from your home directory.
Features
- Fast parallel scanning — uses
fast-globwith up to 8 levels deep from~/, skipping irrelevant folders (node_modules,.git,build,target). - Safety validation — verifies standard JVM build artifacts before marking a folder for deletion, preventing accidental removal of non-JVM
build/directories. - Multi-module aware — consolidates multi-module Gradle/Maven projects (JAR, WAR, EAR, etc.) into a single entry showing accurate module count and combined size.
- Concurrent size calculation — folder sizes are computed in parallel with up to 16 concurrent I/O workers while the TUI is already interactive.
- Clean interactive TUI — keyboard-driven list with selection, bulk operations, and a confirmation dialog before any deletion.
Requirements
- Node.js >= 24
Usage
npx projcleanOr install globally:
npm install -g projclean
projcleanKey Bindings
| Key | Action |
|-----|--------|
| ↑ / k | Move cursor up |
| ↓ / j | Move cursor down |
| g / G | Jump to top / bottom of list |
| SPACE | Select / deselect (advances cursor) |
| ENTER | Select / deselect (stays on row) |
| a | Select / deselect all projects |
| D | Delete selected projects |
| Q / ESC | Quit |
Running Locally
git clone https://github.com/alexjcm/projclean.git
cd projclean
npm install
npm run devBuilding
npm run buildCompiles TypeScript to dist/ and marks the output as executable. Test locally with:
npm link
projcleanFuture Enhancements
- [ ] Support for other ecosystems (Node.js
node_modules, Python__pycache__, etc.) - [ ] iOS project cleanup (
DerivedData) - [ ] Filter / search by project name
