CleanMate

Clean developer junk, package caches and stale build folders

CleanMate cleans package caches, stale node_modules, Docker data, Xcode artifacts and old runtimes on Mac and Ubuntu, with each tool’s own clean command where it has one.

How developer tools consume disk space

Software development tools consume disk space faster than almost any other software. Package managers such as npm, Yarn, pnpm, Bun, pip, uv, Cargo, Gradle and Go download gigabytes of dependencies into local caches that are never automatically purged. Over months of coding, these caches quietly grow to tens of gigabytes.

In addition, inactive projects keep stale node_modules folders, Cargo target directories and Python virtual environments. Compilers, simulators, Android SDK updates, Docker images and container layers create further build artifacts. Finding and pruning these safely across multiple languages and tools is a major hassle.

How CleanMate cleans developer junk

  1. Scan package managers and caches. CleanMate inspects dozens of package caches: npm, Yarn, pnpm, Bun, pip, uv, Go, Cargo, Gradle, Maven, Homebrew, Composer, conda, Deno, Zig, Bazel, ccache, and more. When a tool provides its own clean command, CleanMate invokes it directly.
  2. Stale node_modules and build directories. Projects untouched for 90 days are identified, and their node_modules, Cargo target/, Python .venv/, or CocoaPods Pods/ folders are listed. Build folders are never ticked by default and are moved to the Trash.
  3. Xcode, simulators and Docker. On macOS, clean Xcode DerivedData per project, old device support, archives and test clones. On both systems, prune Docker build cache, untagged images, stopped containers and unused volumes safely.
  4. Old runtimes and IDE upgrades. List outdated runtime versions from nvm, pyenv, rbenv, fvm or SDKMAN that are no longer pinned or in use, as well as what JetBrains IDE upgrades and code editor extension updates leave behind.

Where Mac and Ubuntu differ

macOS

On a Mac, developer cleaning handles Xcode DerivedData per project, iOS device support files, archives, simulator runtimes and test device clones. It also lists the formulae brew autoremove would remove, CocoaPods spec repos, OrbStack caches and logs, forgotten Colima, Lima or minikube virtual machines, and the Julia, Conan, Expo, Hex, PlatformIO and Arduino caches.

Ubuntu

On Ubuntu, developer junk covers package caches including Haskell, Scala and OCaml, the Terraform plugin cache, the minikube download cache and old Vagrant box versions, as well as Docker and Podman images, containers and volumes. It also detects old Unity Editor versions and Proton or Wine builds.

What keeps it safe

The same from the terminal

Scan and clean developer junk from the command line, with dry-run previews and JSON output.

SystemCommandWhat it does
macOScleanmate scan [--only ID,ID…] [--group G,G…] [--privacy] [--json] [--require-fda]What Smart Scan would find now: items by group with their size, and the total ticked by default.
macOScleanmate clean [--only ID,ID…] [--group G,G…] [--privacy] [--dry-run] [--yes] [--json] [--require-fda]Scans again, then cleans. Per item: what was deleted, moved to the Trash or kept and why, then the totals.
Ubuntucm --scan [--only LIST]Prints what a Smart Scan finds. LIST: system, logs, user, browser, apps, ai, models, dev, privacy (privacy only when named).
Ubuntucm --json scan --only logs,devThe scan as JSON: items with id, category, label, bytes, locked, root, trash and data_loss.
Ubuntucm --autoWhat automatic cleaning runs: user, developer and AI cache junk, then a desktop notification.

Questions

Will cleaning developer junk delete my source code or Git repositories?

No. CleanMate lists only package caches, build folders (node_modules, Cargo target, Python .venv, CocoaPods Pods) and old tool versions. Build folders are not ticked and go to the Trash.

What happens if I delete a stale node_modules or target folder?

Stale build folders are moved to the Trash, and Undo puts them back. If you ever open the project again, running your package manager (such as npm install or cargo build) recreates the folder.

How does CleanMate clean Docker data safely?

It cleans Docker build cache, dangling images, stopped containers and unused volumes separately. Named volumes that may contain application data are marked clearly and left unticked.

Does CleanMate remove my active Python, Node or Go version?

No. The runtime version currently in use and any version pinned by your projects are protected. Only unused, unpinned historical versions are offered for removal.

Can I clean Xcode DerivedData without breaking open projects?

Yes. DerivedData is listed per project and skipped while Xcode runs. Xcode rebuilds whatever it needs the next time you build the project.

Get CleanMate

Free and open source. Review every item before it is removed.

Open source — star it on GitHub: CleanMate for macOS · CleanMate for Ubuntu