Mole: A free and open source alternative to Clean my Mac

/ bocabit / apps

As our Mac gets older, it fills up with the remnants and files of applications that we install and uninstall, system updates, caches… If you are also developers like me, you will have dozens of project directories with libraries that we no longer use (Node projects) that take up a lot of space without us realizing it.

For this reason, there are applications that promise to free up space, such as Clean my Mac, which promise to return the Mac to a new youth. The problem is that many of these alternatives are paid, heavy or have abusive subscriptions. This is where Mole comes in, a free, open source utility that runs directly from the terminal.

Basically, Mole unifies the functions of tools like CleanMyMac, AppCleaner, and DaisyDisk into a single lightweight executable.

Mole can be installed using Hombrew:

brew install mole

As I say, Mole combines the functionalities of several applications and allows you to:

  • Clear user and application caches, unused development environments (such as node_modules and Xcode), logs, etc.

  • Allows you to uninstall applications and delete their directories with a simple command (Like AppCleaner, but from the terminal)

  • Analyzes the hard drive and allows you to see which folders and files take up the most space (In the style of my main tool, OmniDiskSweeper)

After doing the cleanup with Mole, more than 50GB of my computer has been freed, which, to be honest, is not bad at all. The only drawback I can say is that it is an application that runs from the terminal, so it is not for everyone.