New Tool Radar

Local Model Setup

How to Delete an Ollama Model and Free Disk Space

Remove a model you no longer use with ollama rm and check the disk space it frees, without touching your other models.

Schematic diagram with four steps: list models and note the size, delete the model with ollama rm, confirm it is gone from the list, then check the freed disk space.

Ollama models are gigabytes each, and a machine that has tried a dozen of them can run out of disk. Deleting a model you no longer use is the quick fix — and it is permanent, so check first that nothing you care about depends on it.

List models, delete one, confirm the space

Run ollama list and note the name and size of the model to remove. Delete it with ollama rm <name> — the API endpoint behind this is DELETE /api/delete. Run ollama list again to confirm it is gone, and check the freed disk space. A running model must be stopped first: delete while it is loaded and Ollama refuses or the space does not come back until it unloads.

ollama list
ollama rm llama3.2:3b
ollama list
# the API form of the same delete:
# DELETE /api/delete with {"model": "llama3.2:3b"}

Deleting a model does not delete custom models built on top of it in the way you might expect: a Modelfile model built FROM llama3.2:3b keeps working only while its base weights are present, so check ollama list for dependents before removing a base model. There is no undo — a deleted model must be pulled again.

Try it: four checks

Check What you should see If you do not see it
Model listed ollama list shows the model and its size Confirm the exact name first
Delete runs ollama rm finishes without an error Stop the model if it is currently loaded
Gone from list ollama list no longer shows it Run the list again to confirm
Space freed Disk space grows by about the model size Check the disk, not just the list

Expected result. We checked the Ollama API reference, which lists Delete a Model among its endpoints. We did not delete a model on this machine.

Limits

This guide covers deleting one model only. Custom models built on a deleted base model can break, and deletion cannot be undone. We did not test any delete ourselves.

Sources

See all