Prune

AI models

Ollama models are eating your disk: find and delete them safely

Last checked Applies to Ollama on macOS 12+, Windows 10 & 11 and Linux 7 min read

Short answer

Ollama keeps every model you pull in one folder, and a few of them can eat tens of gigabytes. Run ollama list to see them and ollama rm <model> to delete the ones you no longer use. Don't delete files in the blobs folder by hand, because models share layers.

Path on Mac
~/.ollama/models
Path on Windows
C:\Users\<you>\.ollama\models
Path on Linux
/usr/share/ollama/.ollama/models
Typical size
≈ 42 GB (typical for a handful of 7B to 70B models)
Safe to delete?
Yes, with ollama rm. Not by deleting files.
Command
ollama rm <model>

Where Ollama stores models

Ollama keeps all of your models in one folder, and you'll find two folders inside it. manifests holds a small file for each model tag that lists the layers the model needs. blobs holds the layers themselves: the weights, the prompt template and the parameters, each stored once under its SHA-256 name.

On Linux the install script runs Ollama as its own system user, which is why the path sits under /usr/share/ollama. If you set the OLLAMA_MODELS environment variable on Mac or Windows, you'll find your models wherever it points instead.

Check how much space your models folder uses:

du -sh ~/.ollama/models
# PowerShell
"{0:N1} GB" -f ((Get-ChildItem "$env:USERPROFILE\.ollama\models" -Recurse |
  Measure-Object Length -Sum).Sum / 1GB)
sudo du -sh /usr/share/ollama/.ollama/models

Remove a model safely

  1. See what you have

    ollama list

    This prints each model's name, ID, size and last-changed time. If two models share layers, each one still shows its full size, so the column can add up to more than the folder really uses.

  2. Pick what to remove

    Look for old versions you've replaced, quantizations you tried once and large models you don't run anymore. ollama ps shows models loaded right now; stop one with ollama stop <model> before you remove it.

  3. Remove it

    # Terminal
    ollama rm llama3.1:70b
    # PowerShell or Command Prompt
    ollama rm llama3.1:70b
    # shell
    ollama rm llama3.1:70b

    Type the full name with its tag, exactly as ollama list prints it. Ollama then deletes the manifest, and after that any layer no other model still uses.

  4. Check the result

    Run ollama list again, then repeat the size check from the first section to see how much space you got back.

Safeollama rm is the supported way to delete a model. You can always get the model back later with ollama pull.

CarefulIf a script or app uses the model you remove, it'll download the model again on its next run, which takes a while on a slow connection.

Don'tdelete files in the blobs folder by hand. Ollama can't tell which model they belonged to, and other models may break.

Why deleting blobs by hand is risky

Ollama stores each layer once and lets every model that needs it point to the same blob. Two tags of the same model, or a custom model you build from a Modelfile on top of a base model, often share the largest layer, which is the weights.

If you delete a blob because it looks big, you may remove weights another model still needs. That model stays in ollama list but fails when you run it, and the only fix is to pull it again. Deleting a manifest by hand has the opposite problem: the model leaves the list, but its blobs stay on disk until Ollama cleans up unused layers at a later start.

ollama rm avoids both, because it checks which layers other models still use before it deletes anything.

See exact GB per model with Prune

The sizes in ollama list don't tell you how much space you get back, because shared layers are counted more than once. Prune is a disk cleaner for Mac and Windows that scans your Ollama folder and shows the exact GB each model uses, next to Hugging Face, Docker and other developer caches.

The scan is free. Nothing is deleted blind: you review every model and path before Prune removes anything.

FAQ

Will deleting a model delete my chats or settings?

No. ollama rm removes model files only. Chat history lives in the app you use with Ollama, not in the models folder.

Why did Ollama get bigger after updating to 0.40?

Since Ollama 0.40, a converted model keeps its old copy as a rollback backup: a ggml manifest next to the new llamacpp one. These backups can take many GB. Removing only the backups is safe unless you plan to go back below 0.40, in which case you pull those models again. Prune finds them on Mac and Windows and removes just the backups with ollama rm.

Can I move models to another drive instead?

Yes, you can. Set the OLLAMA_MODELS environment variable to a folder on the other drive, then move the models folder there and restart Ollama. It works on Mac and Windows.

Will a model I removed come back?

Only if you pull it again, or an app you use asks Ollama to pull it.