[GH-ISSUE #15812] Introduce some smart way to identify and cleanup unfinished downloads to avoid space wastage #72135

Open
opened 2026-05-05 03:31:43 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @hitzhangjie on GitHub (Apr 25, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/15812

Support ollama to prune unfinished downloads immediately.

As far as I can see, when restart Ollama.app, it will clean some parts but not completely.

85%->restart 75% -> restart 65% ...

I think if users are sure they don't want to resume the download, they should have the choice to clean it immediately.
Rather than clean it through this invisible way.

Originally created by @hitzhangjie on GitHub (Apr 25, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/15812 Support ollama to prune unfinished downloads immediately. As far as I can see, when restart Ollama.app, it will clean some parts but not completely. 85%->restart 75% -> restart 65% ... I think if users are sure they don't want to resume the download, they should have the choice to clean it immediately. Rather than clean it through this invisible way.
GiteaMirror added the feature request label 2026-05-05 03:31:43 -05:00
Author
Owner

@hitzhangjie commented on GitHub (Apr 25, 2026):

Image Image

Just add one subcommand ollama prune.

Just search the issue title, 2 years ago, the same issue was closed.
But it's useful, right? I hope we can support this.


I clean it mannually by checking the ollama download files datetime.

<!-- gh-comment-id:4319931373 --> @hitzhangjie commented on GitHub (Apr 25, 2026): <img width="3815" height="114" alt="Image" src="https://github.com/user-attachments/assets/3000ed58-7b6d-4973-94ff-fd8ede78a864" /> <img width="3798" height="309" alt="Image" src="https://github.com/user-attachments/assets/8cd6017f-17a8-4bc9-93d1-83820f2141ad" /> Just add one subcommand `ollama prune`. Just search the issue title, 2 years ago, the same issue was closed. But it's useful, right? I hope we can support this. --- I clean it mannually by checking the ollama download files datetime.
Author
Owner

@chigkim commented on GitHub (Apr 25, 2026):

I think something got broken in recent release.
Upon relaunching, it used to clean up after importing safetensor fails, but it doesn't work anymore either.
https://github.com/ollama/ollama/issues/15803

<!-- gh-comment-id:4320596353 --> @chigkim commented on GitHub (Apr 25, 2026): I think something got broken in recent release. Upon relaunching, it used to clean up after importing safetensor fails, but it doesn't work anymore either. https://github.com/ollama/ollama/issues/15803
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#72135