CleanMate

Delete downloaded AI models you no longer use

Each model you try in Ollama or LM Studio leaves a file of several gigabytes, and no tool deletes it for you. CleanMate lists each model by name with its size and removes only the ones you tick.

Where the space goes

A few weeks of testing Llama, Qwen or Mistral, a couple of GGUF files in LM Studio and a notebook that pulled Whisper and a Hugging Face model can add up to 100 GB. Each tool keeps its models in its own folder, so you need to know several paths to see the total.

Deleting by hand has traps. Ollama stores models as shared layers, and removing a folder can break a model that shares a layer with another one. Using the tool’s own command is safe but you need to remember it for each tool.

How CleanMate handles models

  1. Scan. Smart Scan lists each downloaded model on its own row, with its name, date and size: Ollama, LM Studio and Hugging Face models, and the model files PyTorch, Whisper, sentence-transformers and Keras downloaded.
  2. Decide model by model. Models are never ticked. You tick the ones you want gone, and everything else stays. They are never cleaned automatically.
  3. Remove them the right way. On a Mac, removing an Ollama model works like ollama rm: its manifest goes, and so do the layers no other model uses. A layer several models share stays until the last of them goes.
  4. Get one back later. A model you remove can be downloaded again with its tool. A model you built yourself, for example with ollama create, has to be made again.
The AI tools section of CleanMate on Ubuntu, listing sessions and caches for each tool

Where Mac and Ubuntu differ

macOS

On a Mac, an interrupted Ollama download is its own row, and Ollama models are skipped while Ollama runs. Hugging Face models are in the Developer group, and Chrome’s and Edge’s built-in AI models have a row in the Apps group, not ticked.

Ubuntu

On Ubuntu, AI tools and models are one section of Smart Scan. Each Ollama, Hugging Face and LM Studio model is on its own row, next to PyTorch, Whisper, sentence-transformers and Keras models. Models are never cleaned automatically, including by scheduled cleaning.

What keeps it safe

The same from the terminal

List first, preview with --dry-run, then clean the ids you chose.

SystemCommandWhat it does
macOScleanmate list --jsonEvery item with its id, including each AI group item and whether it is ticked by default (models are not).
macOScleanmate scan --group aiWhat the AI tools group would find now, with sizes.
macOScleanmate clean --only ID --dry-runPreviews cleaning the item whose id you took from list. Drop --dry-run, and add --yes without a terminal, to clean.
Ubuntucm --scan --only ai,modelsPrints what the AI tools and AI models groups find, each model with its size.
Ubuntucm --json scan --only modelsThe same as JSON: id, bytes and locked for each item.
Ubuntucm --json clean ID… --dry-runPreviews cleaning the items you name by id; drop --dry-run to clean.

Questions

Is it safe to delete an Ollama model with CleanMate?

Yes. Removing a model works like ollama rm: its manifest and the layers no other model uses are deleted, and a layer another model needs stays. You can pull it again with ollama pull.

Does it list LM Studio models?

Yes, on both systems. Each model folder is a row with its name and size, and you tick the ones to remove.

What about models of Whisper, PyTorch and Keras?

Model files that Python libraries downloaded are listed one by one with their sizes. They are not ticked, and the library downloads them again when needed.

Will automatic cleaning remove my models?

No. Models are never cleaned automatically, on either system. Ubuntu’s scheduled cleaning covers user, developer and AI cache junk, not models.

Does it remove the chats of my AI coding tools?

Only old sessions older than the age you set, each tickable on its own, and never while the tool runs. Sign-ins, settings, skills and memory are never touched.

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