Clean up build artifacts across all your projects

Scan your projects folder, find build artifacts and dependency caches, and reclaim gigabytes of disk space in one shot.

Get Started View on GitHub
curl -fsSL https://raw.githubusercontent.com/mishamyrt/repomop/master/install.sh | sh
repomop terminal demo showing artifact scanning and cleanup

How it works

1

Scan

Recursively scans a directory for known build and dependency artifacts.

2

Measure

Calculates the real disk size of each discovered artifact directory.

3

Choose

Presents an interactive list where you pick exactly what to remove.

4

Clean

Asks for confirmation, then permanently deletes the selected directories.

Supported ecosystems

JavaScript / Node.js

node_modules with pnpm hard links handling

Rust

target

Swift (SPM)

.build

Python

Virtualenvs (any directory name)

Java / Kotlin (Gradle)

.gradle, build, out

Java (Maven)

target

C / C++ (CMake)

build, cmake-build-*, CMakeFiles

Dart / Flutter

.dart_tool, build

Ruby

.bundle, vendor/bundle

PHP

vendor

Each rule is tied to a project marker file (e.g. Cargo.toml for Rust, package.json for Node.js), so random directories with the same name won't be misidentified.

Installation

Install the latest version with a single command:

curl -fsSL https://raw.githubusercontent.com/mishamyrt/repomop/master/install.sh | sh

By default the binary is placed in $HOME/.local/bin. To change the destination:

curl -fsSL https://raw.githubusercontent.com/mishamyrt/repomop/master/install.sh | INSTALL_DIR=/usr/local/bin sh

To install a specific version:

curl -fsSL https://raw.githubusercontent.com/mishamyrt/repomop/master/install.sh | VERSION=v0.1.0 sh

Usage

Navigate to the directory that contains your projects and run:

repomop

You can also point it at a specific path:

repomop --path ~/Projects

Options

Flag Description
--path Root directory to scan (defaults to the current directory)
--max-depth Maximum traversal depth (-1 for unlimited)
--dry-run List found artifacts without deleting anything
--yes Skip confirmation and delete all found artifacts

Controls

or kj

Navigate the list

Space

Select / deselect item

Enter

Proceed to confirmation

y

Confirm deletion

n or Esc

Cancel and return

q or Ctrl+C

Quit

Warning: Deletion is permanent. Selected directories are removed with os.RemoveAll.