How to delete unused models to free up disk space
Ollama installed, at least one model downloaded
What this does
Removes one or more downloaded model files from the local Ollama store, reclaiming the occupied disk space. The model must be specified by its exact name and will be unavailable for subsequent ollama run calls until re-pulled.
Steps
Inspect current disk usage. Produces a baseline of used and available space.
df -h ~/.ollama/modelsExpected output: A filesystem row showing used and available blocks for the model directory mount.
List models with their sizes. Identifies targets for deletion.
ollama listExpected output: Table where the
SIZEcolumn lists each model's byte footprint.Delete the target model. Removes all blobs and manifest entries for the named model.
ollama rm llama3.2Expected output: No output on success; the shell prompt returns immediately.
Confirm space returned. Verifies the deletion succeeded and the filesystem volume reflects the freed space.
df -h ~/.ollama/models && ollama listExpected output a): filesystem row shows a smaller used value; Expected output b): the deleted model no longer appears in the list.
Verification
ollama list
# Expected: the previously listed model row is absent from the NAME column
Common failures
model 'xxx' not found- Typo or case mismatch; check the exact name fromollama list.cannot remove model 'xxx': no such file- Model already deleted or path was manually altered.permission denied- Insufficient filesystem permissions on~/.ollama/models; use elevation if required.wrong model removed- Name collision; always double-check the exact string before passing torm.Error: server error- Daemon interrupted; restart withollama serveand retry.
Operator checkpoint
Before treating this as solved, write down the local runtime, model or package version, hardware/backend if relevant, and the verification output. This keeps the guide useful as a Will-It-Run style decision instead of a one-off command transcript.