[GH-ISSUE #4559] rm command dont delete files #2859

Closed
opened 2026-04-12 13:12:19 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @marek7400 on GitHub (May 21, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/4559

What is the issue?

ollama version is 0.1.38

I use rm command and
the model was deleted from the list of available models, but the associated sha256 files from the
ollama\models\blobs directory were not deleted.
I had to delete the files manually.

OS

Windows

GPU

Nvidia

CPU

AMD

Ollama version

0.1.38

Originally created by @marek7400 on GitHub (May 21, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/4559 ### What is the issue? ollama version is 0.1.38 I use rm command and the model was deleted from the list of available models, but the associated sha256 files from the ollama\models\blobs directory were not deleted. I had to delete the files manually. ### OS Windows ### GPU Nvidia ### CPU AMD ### Ollama version 0.1.38
GiteaMirror added the bugneeds more info labels 2026-04-12 13:12:19 -05:00
Author
Owner

@pdevine commented on GitHub (May 26, 2024):

@milenamilka755 If any parts of the model are being shared with a different model the blobs won't be cleaned up.

<!-- gh-comment-id:2132275791 --> @pdevine commented on GitHub (May 26, 2024): @milenamilka755 If any parts of the model are being shared with a different model the blobs won't be cleaned up.
Author
Owner

@marek7400 commented on GitHub (May 26, 2024):

@milenamilka755 If any parts of the model are being shared with a different model the blobs won't be cleaned up.

It seems to me that this is not the case because it was not some small piece, but more than 4GB file with the main model.

<!-- gh-comment-id:2132278404 --> @marek7400 commented on GitHub (May 26, 2024): > @milenamilka755 If any parts of the model are being shared with a different model the blobs won't be cleaned up. It seems to me that this is not the case because it was not some small piece, but more than 4GB file with the main model.
Author
Owner

@pdevine commented on GitHub (May 26, 2024):

@milenamilka755 hmm... I'll keep poking around here to see if I can find something.

<!-- gh-comment-id:2132281977 --> @pdevine commented on GitHub (May 26, 2024): @milenamilka755 hmm... I'll keep poking around here to see if I can find something.
Author
Owner

@dhiltgen commented on GitHub (Oct 24, 2024):

I haven't been able to reproduce. @milenamilka755 are you still seeing this behavior on the latest version of Ollama? Can you share a repro scenario (what models did you have, and what model did you remove)?

<!-- gh-comment-id:2435676988 --> @dhiltgen commented on GitHub (Oct 24, 2024): I haven't been able to reproduce. @milenamilka755 are you still seeing this behavior on the latest version of Ollama? Can you share a repro scenario (what models did you have, and what model did you remove)?
Author
Owner

@pdevine commented on GitHub (Oct 24, 2024):

I think we can probably close this for now, but we can reopen it if there's a way to reproduce.

<!-- gh-comment-id:2435685080 --> @pdevine commented on GitHub (Oct 24, 2024): I think we can probably close this for now, but we can reopen it if there's a way to reproduce.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#2859