[GH-ISSUE #4214] (Prune unwanted dangling models) Prune data from models which where partially downloaded #2626

Closed
opened 2026-04-12 12:58:41 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @arthurGrigo on GitHub (May 6, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/4214

Sometime it happens that a user starts to download the wrong model or runs out of space (https://github.com/ollama/ollama/issues/2497).

The partially downloaded model is not visible through 'ollama list' after canceling the download and therefore cannot be removed using 'ollama rm '.

At the moment users have to find the corresponding sha and blob in the ollama directory and remove it manually or fully download the model just to be able to delete it.

Path for windows users: "C:\Users\your_user\ .ollama\models\blobs"

A command like 'ollama prune' or 'ollama autoremove' would be great.

Originally created by @arthurGrigo on GitHub (May 6, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/4214 Sometime it happens that a user starts to download the wrong model or runs out of space (https://github.com/ollama/ollama/issues/2497). The partially downloaded model is not visible through 'ollama list' after canceling the download and therefore cannot be removed using 'ollama rm <model>'. At the moment users have to find the corresponding sha and blob in the ollama directory and remove it manually or fully download the model just to be able to delete it. Path for windows users: "C:\Users\your_user\ .ollama\models\blobs" A command like 'ollama prune' or 'ollama autoremove' would be great.
GiteaMirror added the feature request label 2026-04-12 12:58:41 -05:00
Author
Owner

@jmorganca commented on GitHub (May 7, 2024):

Hi @arthurGrigo in this case you can restart Ollama which will prune. Pruning also happens on ollama create and I think ollama pull. Let me know if this helps!

<!-- gh-comment-id:2098883711 --> @jmorganca commented on GitHub (May 7, 2024): Hi @arthurGrigo in this case you can restart Ollama which will prune. Pruning also happens on `ollama create` and I think `ollama pull`. Let me know if this helps!
Author
Owner

@kamathln commented on GitHub (Aug 24, 2025):

Would still love a prune command, just to put system admin's / ML OP's mind to ease. Current method still feels a bit unpolished and hackish.

On a related note - if the incomplete download is tried to be pulled again, does it restart or continue from where it left off?

<!-- gh-comment-id:3218029183 --> @kamathln commented on GitHub (Aug 24, 2025): Would still love a prune command, just to put system admin's / ML OP's mind to ease. Current method still feels a bit unpolished and hackish. On a related note - if the incomplete download is tried to be pulled again, does it restart or continue from where it left off?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#2626