# π§Ή rs_clean β Clean Build Targets for Rust, Go, Gradle, and Maven
> β‘ Easily remove compiled build artifacts from Rust, Go, Gradle, and Maven projects with a single command.
π Looking for Chinese docs? [View δΈζθ―΄ζ π¨π³](./README_zh.md)
## π Quick Start
```bash
$ rs_clean folder/
````
This command recursively removes build directories in the specified folder and its subdirectories.
---
## π¦ Installation
### Option 1: Install via Cargo
```bash
cargo install rs_clean
```
### Option 2: Download from Releases
π [Download from GitHub Releases](https://github.com/your-repo/releases)
Grab the latest binary for your operating system.
---
## β¨ Features
* β
Cleans **Rust** projects: `target/`
* β
Cleans **Go** build output
* β
Cleans **Gradle** projects: `build/`
* β
Cleans **Maven** projects: `target/`
* β
Recursively scans subdirectories
* β
Automatically detects project type
---
## π Example Structure
```bash
$ tree my_projects/
my_projects/
βββ rust_app/
β βββ target/
βββ go_service/
β βββ bin/
βββ gradle_app/
β βββ build/
βββ maven_module/
βββ target/
```
After running:
```bash
$ rs_clean my_projects/
```
The build artifacts will be cleaned:
```bash
$ tree my_projects/
my_projects/
βββ rust_app/
βββ go_service/
βββ gradle_app/
βββ maven_module/
```
---
## π‘ Use Cases
* Free up disk space by removing large build folders.
* Ensure a clean build environment in CI/CD pipelines.
* Clean multiple types of projects in monorepos.
---
## π Roadmap
* [ ] Support Node.js projects (`node_modules/`)
* [ ] Show disk space saved after cleanup
* [ ] Add interactive confirmation prompts
---
## π€ Contributing
We welcome contributions and feedback!
* Open an [issue](https://github.com/pwh-pwh/rs_clean/issues) for bugs or suggestions
* Submit a pull request for enhancements
* Star β the repo if you find it helpful
---
## π License
MIT License Β© 2025 \[coderpwh]