Skip to content
Storage Cleaner Expert
  • Features
  • AI
  • Contact
Download on App Store

On this page

  1. Each tool at a glance
  2. Delete Ollama models
  3. Delete LM Studio models
  4. Clear the Hugging Face cache
  5. Other model folders
  6. In Storage Cleaner Expert
  7. FAQ

Delete Ollama & LM Studio Models on Mac

By Andrei Yakushau, who builds Storage Cleaner Expert · Published 30 November 2026

To delete an Ollama model, run ollama rm followed by the model’s name. LM Studio keeps each model in its own folder under ~/.lmstudio/models, and Hugging Face tools share a cache you clear with hf cache rm. Nothing here is the only copy of anything: a deleted model downloads again when you need it, which takes time and bandwidth.

The commands

  • Ollama: ollama ls, then ollama rm <model>.
  • LM Studio: quit the app, then move ~/.lmstudio/models/<publisher>/<model> to the Trash.
  • Hugging Face: hf cache ls, then hf cache rm model/<id>.
  • Empty the Trash to get the space back.

Where each tool keeps its models

Each tool keeps models in its own hidden folder in your home folder, so they don’t show up in Downloads or Documents. Folders that start with a dot are hidden in Finder: choose Go › Go to Folder and type the path.

Ollama

Where
~/.ollama/models
See what’s there
ollama ls
Delete
ollama rm <model>
To get it back
ollama pull <model>

LM Studio

Where
~/.lmstudio/models/<publisher>/<model>
See what’s there
lms ls, or My Models in the app
Delete
Move the model’s folder to the Trash, with LM Studio quit
To get it back
Download it again in LM Studio

Hugging Face

Where
~/.cache/huggingface/hub
See what’s there
hf cache ls
Delete
hf cache rm model/<id>
To get it back
Downloaded again the next time code loads it

To see how much each one takes, run this in Terminal. It only reads sizes:

du -sh ~/.ollama/models ~/.lmstudio/models ~/.cache/huggingface 2>/dev/null

How to delete Ollama models

  1. List the models you have:
    ollama ls
  2. Check whether one is loaded right now, and stop it:
    ollama ps
    ollama stop <model>
  3. Delete it, using the name exactly as ollama ls shows it, tag included:
    ollama rm <model>

The commands are from Ollama’s CLI reference. Ollama keeps models in ~/.ollama/models on a Mac, or in the folder named by OLLAMA_MODELS if you set it (Ollama FAQ). Delete models with ollama rmrather than by removing files inside that folder.

What you lose: the model must be pulled again before you can use it, with ollama pull <model>.

Also safe to clear: ~/.ollama/logs, the logs the Ollama server writes for troubleshooting. To remove Ollama completely, follow the uninstall list in Ollama’s macOS docs; it includes ~/.ollama, so it deletes every model too.

How to delete LM Studio models

LM Studio stores each model the way Hugging Face organises them, one folder per publisher and one per model inside it, under ~/.lmstudio/models (LM Studio docs). If you changed the models folder, My Models in LM Studio shows where it is.

  1. See what you have, with sizes:
    lms ls
  2. Quit LM Studio, or unload the model first with lms unload.
  3. In Finder, choose Go › Go to Folder and enter ~/.lmstudio/models.
  4. Open the publisher’s folder and move the model’s folder to the Trash. Remove the publisher folder too if it’s now empty.
  5. Empty the Trash.

What you lose: the model must be downloaded again before it can be used.

Older versions of LM Studio kept models in ~/.cache/lm-studio/models, next to settings and conversations. Delete model folders there one at a time, never the whole ~/.cache/lm-studio folder, or LM Studio’s settings go too. Server logs in ~/.lmstudio/server-logs are safe to clear.

How to clear the Hugging Face cache

Libraries that download from the Hugging Face Hub share one cache. By default it’s ~/.cache/huggingface/hub, with one folder per model or dataset, such asmodels--meta-llama--Llama-3.2-1B. HF_HOME or HF_HUB_CACHE move it (Hugging Face docs).

  1. List what’s cached, with sizes and when each was last used:
    hf cache ls
  2. Preview a deletion, then run it:
    hf cache rm model/<publisher>/<name> --dry-run
    hf cache rm model/<publisher>/<name>
  3. Remove detached revisions and incomplete downloads, keeping current models:
    hf cache prune

hf is the command-line tool that comes with the huggingface_hub package. Datasets work the same way, with dataset/ in place of model/.

What you lose: the model downloads again the next time code loads it, which can be many gigabytes.

Other folders where AI models pile up

FolderWhat it holdsVerdictWhat you lose
~/.cache/huggingface/xetPieces of files kept so later Hugging Face downloads are fasterSafeLater downloads may take longer. Models are kept separately.
~/.cache/whisperSpeech recognition models Whisper downloadedSafeThey download again when next used.
~/.cache/torchModels and checkpoints PyTorch Hub and libraries built on it downloadedCheck firstDownloads repeat. Checkpoints you trained or saved here yourself can’t be downloaded again.
~/.ollama as a wholeModels plus Ollama’s settingsUse ollama rmEvery model, and Ollama’s configuration.
~/.cache as a wholeCaches, models, environments and settings of many command-line toolsKeepSome of it rebuilds; some, like sign-in tokens, doesn’t.

For everything else on a full disk, see how to free up disk space on a Mac.

How Storage Cleaner Expert shows local AI models

Storage Cleaner Expert groups downloaded models under AI Models, next to its other scan categories. It lists each LM Studio model and each Hugging Face model or dataset on its own, by name, so you can remove the one you stopped using and keep the rest. Ollama’s models appear as one folder; use ollama rm to remove a single model.

Each item says what you lose, such as “It must be downloaded again before it can be used.” Nothing is marked for you. Items you mark go to the Trash, and the app erases them only if you choose Empty Trash and confirm. Scanning is free, and the free plan includes one cleanup every 24 hours. Storage Cleaner Expert needs macOS 15.6 or later and is on the Mac App Store. See how the Mac storage cleaner works.

FAQ

Where are Ollama models stored on a Mac?

In ~/.ollama/models, inside your home folder. The folder starts with a dot, so Finder hides it: choose Go › Go to Folder and enter ~/.ollama to open it. If you set OLLAMA_MODELS, they’re in that folder instead.

Does uninstalling Ollama delete the models?

Not if you only drag Ollama to the Trash. The models stay in ~/.ollama, which Ollama’s own uninstall steps list as a separate folder to remove, along with its folders in ~/Library.

Can I move Ollama models to an external drive?

Yes. Set the OLLAMA_MODELS environment variable to a folder on the drive. For the Ollama app on a Mac, Ollama’s docs set variables with launchctl setenv, followed by a restart of the app.

Is it safe to delete the Hugging Face cache?

Yes, in the sense that nothing in it is the only copy: models and datasets download again the next time code asks for them. That download can be many gigabytes, so delete the models you no longer use rather than the whole folder. Your access token sits in ~/.cache/huggingface too, so don’t delete that folder as a whole.

Storage Cleaner Expert for Mac. Requires macOS 15.6 or later.

Mac App StoreGuidesPrivacy PolicyTerms of UseContact

© 2026 Storage Cleaner Expert. Mac, macOS and Mac App Store are trademarks of Apple Inc. This app isn't made or endorsed by Apple.