The short answer
- 01
Ollama: models are in ~/.ollama/models (or OLLAMA_MODELS). List with ollama ls, remove with ollama rm <name:tag>.
- 02
Hugging Face: cache is ~/.cache/huggingface/hub. Use hf cache ls, rm and prune. Old revisions are never deleted automatically.
- 03
LM Studio: models are in ~/.lmstudio/models/<publisher>/<model>. Delete them in the My Models tab.
- 04
Uninstalling the apps keeps the models. The folders stay until you remove them.
- 05
Use each tool's own command instead of deleting blob files by hand, because models share data.
Ollama
Storage path~/.ollama/modelsOr the folder in OLLAMA_MODELS. Holds blobs and manifests.
ollama lsLists models with sizes. Removes nothing.ollama rm llama3:8bollama rm mistral:7bollama rm qwen2.5:14bRemoves: the manifest and the blobs no other model uses. Layers shared with another model stay, so the space freed can be smaller than listed. Do not delete files inside blobs by hand.
Hugging Face
Storage path~/.cache/huggingface/hubChange it with HF_HOME or HF_HUB_CACHE. Each repo is models--<org>--<name>.
hf cache lsLists cached repos. Add --revisions to see each revision. Removes nothing.hf cache rm model/meta-llama/Llama-3.1-8B-Instruct --dry-runhf cache rm model/Qwen/Qwen2.5-7B-Instruct --dry-runhf cache rm model/mistralai/Mistral-7B-Instruct-v0.3 --dry-runRemoves: only the blobs that repo or revision alone uses. Run with --dry-run first, then again without it. Old revisions are never deleted automatically; hf cache prune removes unreferenced revisions and .incomplete downloads.
LM Studio
Storage path~/.lmstudio/modelsLaid out as <publisher>/<model>/<file>.gguf. Change the folder in the My Models tab.
lms lsLists what is on disk. lms unload only frees memory, not disk.~/.lmstudio/models/lmstudio-community/Meta-Llama-3.1-8B-Instruct-GGUFFolder to remove.~/.lmstudio/models/Qwen/Qwen2.5-7B-Instruct-GGUFFolder to remove.~/.lmstudio/models/lmstudio-community/Mistral-7B-Instruct-v0.3-GGUFFolder to remove.How: delete the model in the My Models tab, or remove its folder in Finder. LM Studio's documentation does not describe a delete command.
AI coding tools
Storage path~/.claude, ~/.codex, ~/Library/Application Support/CursorNot models, but they grow too. Delete only the clearly regenerable parts.
~/.claude Safe to clean: old session transcripts in projects/ (deleted after 30 days by default, set by cleanupPeriodDays in settings.json). Keep: settings.json, CLAUDE.md, skills, plugins. Folder can move with CLAUDE_CONFIG_DIR.~/.codex Safe to clean: old session logs under sessions. Keep: config.toml, auth.json, history.jsonl. Folder can move with CODEX_HOME.~/Library/Application Support/Cursor Safe to clean: Cache, CachedData and GPUCache, which rebuild. Quit the editor first. Keep: settings, extensions and the live state database. This layout comes from observation, not vendor documentation, so check sizes first.Where each tool keeps models
Local models are some of the largest files on a developer Mac, and none of these tools delete them for you. For disk usage across the whole Mac, see the guide to freeing disk space.
| Tool | Default location | Override |
|---|---|---|
| Ollama | ~/.ollama/models | OLLAMA_MODELS |
| Hugging Face | ~/.cache/huggingface/hub | HF_HOME, HF_HUB_CACHE |
| LM Studio | ~/.lmstudio/models | Set in the My Models tab |
Safe to delete?
| Item | Verdict | What you lose |
|---|---|---|
| A model you no longer use | Safe | The download. You can pull it again, but large models take time and bandwidth. |
Old Hugging Face revisions, .incomplete files | Safe | Superseded snapshots and failed downloads. |
Hugging Face xet cache | Safe | Upload shard cache. Hugging Face docs say it can be removed to reclaim space. |
| A model your scripts depend on | Careful | Your tools fail until it is downloaded again. |
Individual files inside blobs/ | Never | Blobs are shared between models and revisions. Deleting one can corrupt several. |
| Ollama or Hugging Face config, tokens | Never | Settings and logins. Only delete models, not everything in the folder. |
Ollama
ollama ls
Lists models with sizes. Removes nothing.
ollama rm llama3:8b
Removes that model (use your own name and tag). It deletes the manifest and blobs no other model uses, so layers shared with another model stay and the freed space can be smaller than listed.
To move models to another drive, set OLLAMA_MODELS. For the macOS app, Ollama's documentation says to set environment variables with launchctl, then restart Ollama. Its uninstall steps also list ~/.ollama, so removing the app alone leaves the models.
Hugging Face
Each repo is stored as models--<org>--<name> with blobs, snapshots (symlinks into blobs) and refs. Datasets and Spaces use datasets-- and spaces-- prefixes. Hugging Face never deletes cached files automatically, so old revisions pile up.
hf cache ls
Lists cached repos. Add --revisions to see each revision. Removes nothing.
hf cache rm <repo-or-revision> --dry-run
Previews what removing a repo or revision would free. Run it again without --dry-run to delete. Removing a revision deletes only the blobs that revision alone uses.
hf cache prune
Removes unreferenced revisions, .incomplete partial downloads and orphaned shared blobs.
The older huggingface-cli scan-cache and huggingface-cli delete-cache still work with deprecation warnings. MLX models download through the same hub, so they land in this cache.
LM Studio
LM Studio keeps files as ~/.lmstudio/models/<publisher>/<model>/<file>.gguf. You can change the folder in the My Models tab. Delete a model there, or remove its folder in Finder. lms ls lists what is on disk, but lms unload only frees memory, not disk. The documentation describes no delete command, so use the app.
Older guides mention ~/.cache/lm-studio/models, an earlier default. Check it if you have used LM Studio for a long time.
Do not delete files inside blobs directories by hand. Ollama and Hugging Face share blob files between models and revisions. Use ollama rm or hf cache rm so the manifests stay consistent.
AI coding tool data folders
Coding assistants also write local history. Delete only the clearly regenerable parts.
- Claude Code. Data is in
~/.claude, or the folder inCLAUDE_CONFIG_DIR. Transcripts inprojects/are deleted after 30 days by default (cleanupPeriodDaysinsettings.json). Keepsettings.json,CLAUDE.md, skills and plugins. - Codex. State is in
~/.codexorCODEX_HOME. Old logs undersessionscan go. Keepconfig.toml,auth.jsonandhistory.jsonl. - Cursor. Chromium-style caches (
Cache,CachedData,GPUCache) in~/Library/Application Support/Cursorrebuild. Leave settings, extensions and the live state database. Quit the editor first.
The Cursor layout comes from observation, not vendor documentation, so check sizes before deleting.
One list of every model, sized by what you would free
Hoardless lists Ollama models one by one (Confirm tier) sized by the bytes only that model uses, and removes them with ollama rm. For Hugging Face it separates old revisions from the current one and moves exact snapshot folders to the Trash (Confirm), and clears unfinished downloads (Auto). LM Studio models are Confirm and go to the Trash. It also flags duplicate large model files across tools. Claude Code, Codex and Cursor leftovers are listed as Confirm or Auto items, and settings, auth and history files are never touched.
See HoardlessQuestions
Where does Ollama store models on a Mac?
In ~/.ollama/models, in blobs and manifests folders, unless OLLAMA_MODELS points elsewhere.
How do I delete an Ollama model?
Run ollama ls to see names, then ollama rm
Does ollama rm free the full listed size?
Not always. Layers shared with other models stay, so the space freed can be less than ollama ls shows.
Where is the Hugging Face cache on a Mac?
At ~/.cache/huggingface/hub. HF_HOME or HF_HUB_CACHE changes it.
How do I delete Hugging Face models from the cache?
Run hf cache ls, then hf cache rm with the repo or revision. hf cache prune removes unreferenced revisions and partial downloads. The older huggingface-cli delete-cache still works but is the legacy command.
Why is my Hugging Face cache so big?
Hugging Face never deletes cached files on its own. When a new revision downloads, the previous files are kept.
How do I delete LM Studio models?
Remove them in the My Models tab, or delete the model's folder under ~/.lmstudio/models. lms unload only frees memory, not disk.
Does uninstalling Ollama or LM Studio delete the models?
No. ~/.ollama and the LM Studio models folder stay until you remove them.