Open Source
v0.1.1

build-cleanup

Automated build artifact cleanup for development projects. Remove temporary files, caches, and build outputs with intelligent detection.

Terminal
$ build-cleanup --dry-run
Would remove:
 - target/ (245 MB)
 - node_modules/.cache/ (128 MB)
Total: 507 MB

$ build-cleanup
Removed 507 MB of build artifacts ✓

Powerful Features

Keep your workspace clean automatically

Dry Run Mode

Preview what would be deleted before committing. See exactly what files and directories will be affected.

Multi-Language Support

Automatically detects and cleans build artifacts for Rust, Node.js, Python, Java, Go, and more.

Custom Patterns

Define custom patterns and directories for projects with unique build structures.

Space Reporting

Detailed reporting of space reclaimed. See exactly how much disk space will be freed.

Safe Deletion

Only removes known build artifacts and temporary files. Never touches source code or important configurations.

Verbose Logging

Detailed output showing every action taken. Perfect for debugging and understanding what's being cleaned.

Supported Build Systems

Automatically detects and cleans artifacts from popular build tools

🦀

Rust

target/, Cargo.lock

📦

Node.js

node_modules/, dist/, .cache/

🐍

Python

__pycache__/, *.pyc, pytest_cache/

Java

target/, build/

Usage Examples

Simple commands for powerful cleanup

Preview Cleanup

$ build-cleanup --dry-run

Run Cleanup

$ build-cleanup

Custom Patterns

$ build-cleanup --custom "build,*.tmp"

Verbose Output

$ build-cleanup --verbose

Technical Details

Dependencies

  • clap - CLI argument parsing
  • walkdir - Directory traversal
  • glob - Pattern matching
  • which - Executable detection

System Requirements

  • Rust 1.70.0 or higher
  • 64-bit operating system
  • Linux, macOS, or Windows

Ready to Clean?

Get build-cleanup and reclaim disk space with one command.

More Tools

Open-Source Projects

🔢

count

Fast line/word/character counter

📍

whereis

Cross-platform path finder

🔍

ninjagrep

Blazing-fast text search

🧹

build-cleanup

Smart build artifact cleanup (this page)