Anyone who runs local models knows the moment: a download dies halfway, the disk fills, and the model folder turns out to be far larger than the list of installed models suggests. Ollaprune, a new open-source command-line tool released this week, exists to audit that mess. It scans Ollama stores, Hugging Face caches and GGUF folders, works out which blobs are actually referenced, and builds a cleanup plan that defaults to a dry run.

Safety rules come first
Deleting model files is easy; deleting the right ones is the job. Ollaprune removes Ollama models only through the official removal command, limits direct file deletion to unreferenced orphans and partial downloads, and blocks loaded or corrupt models from pruning. A stale plan aborts rather than guessing, and an applied prune writes a restore list so removed models can be pulled again. The prune command shows its plan first and changes nothing until explicitly applied.
The tool also guards downloads before they start. A guard command checks whether a planned pull fits the available space while reserving ten percent headroom, and it returns a failure code suitable for scripts and continuous-integration checks. In the demo store of 13.13 GB, the audit found 2.94 GB of waste from orphans and partials, and a full prune plan identified 7.23 GB that could be reclaimed. Those are fixture numbers, not a promise about any real machine, but they show the shape of the problem clearly.
Small tool, real gap
Ollaprune is a zero-dependency Python program requiring Python 3.9 or newer, distributed from its source repository rather than a package index, with 34 tests covering parsing, deduplication, scoring and the guard. It does not predict whether a model fits a GPU or how fast it will run, and it says so plainly. Its job is narrower: honest sizes, safe deletion and a warning before a forty-gigabyte pull meets a full disk.
Local AI has matured from demos into daily infrastructure on developer machines and small servers. Infrastructure needs housekeeping tools, and model stores have lacked a careful one. Ollaprune’s first release is a sensible answer: measure first, delete last, and never surprise the person who owns the disk.
The design choices also set a good example for destructive tools generally. Dry runs by default, explicit confirmation before changes, blocked categories that are never touched, and a restore record after the fact are the difference between a utility people trust and one they run once with their fingers crossed. Model files are large, re-downloads are slow, and mistakes are expensive. A cleanup tool that respects that reality earns its place in the toolbox.



















No comments yet