Mole vs a GUI cleaner with undo

Mole is a popular open-source command-line cleaner for Mac. If you live in the terminal, it is a strong free choice.

Mole in short

  • Open source under GPL-3.0, on GitHub (tw93/Mole), with about 75.9k stars when we checked.
  • Install: brew install mole (CLI) or the project's install script. macOS 12 or newer, Intel and Apple silicon.
  • A separate proprietary "Mole for Mac" app also exists; the README does not show its price.

What its commands do

CommandWhat it does
mo cleanDeep cleanup, including leftovers of removed apps
mo uninstallRemoves apps and their leftovers
mo analyzeDisk explorer
mo purgeCleans project build artifacts
mo installerFinds and removes installer files
mo statusLive system dashboard

Destructive commands support --dry-run, so preview first:

 Terminal
mo clean --dry-run

Side by side

Mole CLIJunk Raccoon
PriceFree, open sourceFree
InterfaceTerminalMac app
PreviewDry runFile-by-file list with previews
Undo after cleaningNot stated in the READMEHolding folder, one-click put back
Protects uncommitted git workNot stated in the READMEYes, repos with unsaved work are blocked
AI sorting into your foldersNoYes

Choose Mole if

you want a free, scriptable terminal tool and are comfortable reading a dry run.

Choose Junk Raccoon if

you want to click through the plan, keep a way back, and have project folders with unpushed work skipped automatically. Junk Raccoon is our app, so weigh this page with that in mind.

Sources

Checked on 2026-11-23. Prices and versions change; check the vendor's site before buying.

Questions

Is Mole free?

The Mole command-line tool is free and open source under GPL-3.0. A separate proprietary Mole for Mac app also exists.

Can Mole preview what it deletes?

Yes. Its destructive commands support --dry-run.

Let the raccoon do it, safely

Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free to download, no account, no ads.

Download for Mac