Delete Ollama, Hugging Face and LM Studio models on a Mac

Where Ollama, Hugging Face and LM Studio keep models on a Mac, how to see their sizes, and the commands that delete them cleanly.

Short answer

Local AI models are usually the largest files on a developer's Mac: one 8-billion-parameter model is around 5 GB, and it's easy to try ten. Ollama keeps them in ~/.ollama/models (delete with ollama rm), Hugging Face in ~/.cache/huggingface/hub (delete with hf cache rm), and LM Studio in ~/.lmstudio/models. Use each tool's own command rather than Finder, because models share files and a folder you delete by hand may not free what you expect.

How much space are your models using?

One line per tool. Each only reads:

Terminal
# Ollama: every model with its size
$ ollama list

# Hugging Face: every cached model and dataset with its size
$ uvx --from huggingface_hub hf cache ls

# LM Studio: the models folder (older versions used ~/.cache/lm-studio/models)
$ du -sh ~/.lmstudio/models/*/* 2>/dev/null

uvx runs the Hugging Face CLI without installing it. If you already have it (pip install -U huggingface_hub), drop the uvx --from huggingface_hub part and run hf cache ls.

Ollama

Ollama stores everything under ~/.ollama/models:

  • manifests/ holds one small file per model and tag, such as registry.ollama.ai/library/llama3.1/8b.
  • blobs/ holds the actual weights, named by their SHA-256 hash.

Models built on the same base share blobs. That's why adding up the folder by hand and comparing it with ollama list can give different numbers, and why you shouldn't delete files in blobs/ yourself.

Terminal
$ ollama list                # name, ID, size, modified
$ ollama rm llama3.1:8b      # remove one model
$ ollama rm qwen3:4b gemma3  # or several at once

ollama rm deletes the model's manifest and every blob no other model needs. It doesn't use the Trash, so the only way back is ollama pull.

If you moved your models with the OLLAMA_MODELS environment variable, they're in that folder instead. ollama rm still finds them, as long as the Ollama server was started with the same setting.

Safe

Every Ollama model you pulled from the registry comes back with ollama pull. The exception is a model you built yourself with ollama create from a Modelfile: keep the Modelfile and its weights, or it's gone.

Hugging Face

transformers, diffusers, sentence-transformers, mlx-lm and most other Python AI libraries download models into the Hugging Face cache:

Terminal
$ ~/.cache/huggingface/hub

HF_HOME or HF_HUB_CACHE moves it. Each model has a folder named models--org--name, and datasets use datasets--org--name.

Don't judge those folders by their size in Finder. Recent versions of huggingface_hub keep the large weight files in a shared blobs folder at the top of the cache and link to them from each model's folder. On my Mac the folder for mlx-community/whisper-large-v3-turbo is 20 KB, while the model really takes 1.6 GB. Delete that folder in Finder and the 1.6 GB stays.

The hf CLI understands the layout:

Terminal
# list with sizes, last used and last modified
$ hf cache ls

# see what a delete would remove, then do it
$ hf cache rm model/mlx-community/whisper-large-v3-turbo --dry-run
$ hf cache rm model/mlx-community/whisper-large-v3-turbo

# old revisions and half-finished downloads only
$ hf cache prune

hf cache rm asks before it deletes (-y skips the question) and accepts several repos at once. hf cache prune keeps the models you use and removes only revisions no branch points to and downloads that never finished, so it's the safe one to run first.

Check first

A deleted model downloads again the next time your code loads it, so it's safe for your projects. Two exceptions: gated models need your access token again, and a model its author has since removed or made private won't come back.

LM Studio

LM Studio keeps each model in its own folder, grouped by publisher:

Terminal
$ ~/.lmstudio/models/<publisher>/<model>

Older versions used ~/.cache/lm-studio/models, and you can change the folder in LM Studio's settings. Delete models from LM Studio's own model list, so the app knows they're gone. If you remove a folder by hand, quit LM Studio first.

Models you downloaded through LM Studio come back from its Discover tab. A GGUF file you copied in yourself only comes back if you still have it somewhere else.

Shedi lists every Ollama and LM Studio model with its sizeOne row per model, with what it is and how to get it back. Ollama models are counted the way Ollama counts them, so shared files stay. Selected models go to the Trash first.
Get Shedi

Other AI caches worth a look

These are the default folders. All of them download again when needed:

FolderWhat's in it
~/.cache/torch/hubmodels loaded with PyTorch's torch.hub
~/.cache/whispermodels for OpenAI's whisper Python package
~/.cache/huggingface/xetHugging Face's download cache for the Xet storage backend

Each Python virtual environment also has its own copy of PyTorch and friends. The developer cache reference covers project .venv folders, along with the pip and uv caches.

A sensible routine

Terminal
$ ollama list
$ hf cache ls
# remove what you haven't used this month
$ ollama rm <model>
$ hf cache rm <repo>
$ hf cache prune

Models are usually the biggest item, but rarely the only one. To see them next to Docker, Xcode and package caches, run diskreceipt, a free Terminal tool that prints every developer cache with its size, or open Shedi.

Sources

Questions

Where does Ollama store models on a Mac?

In ~/.ollama/models, unless you set the OLLAMA_MODELS environment variable to another folder. Inside are manifests (one small file per model) and blobs (the large weight files, shared between models that use the same layers).

How do I delete an Ollama model?

Run ollama list to see your models and their sizes, then ollama rm followed by the name, for example ollama rm llama3.1:8b. Ollama removes the model and any blobs no other model uses. It doesn't go through the Trash.

Where is the Hugging Face cache on a Mac?

In ~/.cache/huggingface/hub, unless HF_HOME or HF_HUB_CACHE points elsewhere. Python libraries such as transformers, diffusers and mlx download models there.

Is it safe to delete the Hugging Face cache?

Your code keeps working: a deleted model downloads again the next time something loads it. The cost is the download time, and models you no longer have access to, such as gated or removed ones, may not come back.

Can I delete a Hugging Face model folder in Finder?

It may not free the space. Newer versions of huggingface_hub keep large weight files in a shared blobs folder and link to them from the model's folder, so deleting the model folder can leave gigabytes behind. Use hf cache rm, which removes both.