[GH-ISSUE #9097] Windows: Ask before deleting model files during uninstallation #31681

Closed
opened 2026-04-22 12:22:54 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @4goettma on GitHub (Feb 14, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/9097

I have just uninstalled Ollama (I think it was 0.5.7) under Windows in order to perform a clean reinstallation. Unfortunately, I found that all model files in .ollama were deleted without being asked. I did not expect this. Please add a checkbox / confirmation to the uninstall program, e.g. “Do you want to remove the model files?”

Originally created by @4goettma on GitHub (Feb 14, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/9097 I have just uninstalled Ollama (I think it was 0.5.7) under Windows in order to perform a clean reinstallation. Unfortunately, I found that all model files in .ollama were deleted without being asked. I did not expect this. Please add a checkbox / confirmation to the uninstall program, e.g. “Do you want to remove the model files?”
GiteaMirror added the feature requestwindows labels 2026-04-22 12:22:54 -05:00
Author
Owner

@YonTracks commented on GitHub (Feb 15, 2025):

Howdy, yes what a great idea. srry about that, happened to me also. I have been saving a backup of the .ollama folder before uninstalling or anything like that, and replacing the fresh with the backup (but I did learn the hard way), but if you don't know, then you don't know, so yep, a prompt or something would be great.

so far, I have tested this functionality and the functionality works.
cc26b0f04b

ollama will sort it soon enough.
cheers good luck.

<!-- gh-comment-id:2660780452 --> @YonTracks commented on GitHub (Feb 15, 2025): Howdy, yes what a great idea. srry about that, happened to me also. I have been saving a backup of the .ollama folder before uninstalling or anything like that, and replacing the fresh with the backup (but I did learn the hard way), but if you don't know, then you don't know, so yep, a prompt or something would be great. so far, I have tested this functionality and the functionality works. https://github.com/YonTracks/ollama-yontracks/commit/cc26b0f04bb0f59480b8f887f0dca4c57bedbadc ollama will sort it soon enough. cheers good luck.
Author
Owner

@4goettma commented on GitHub (Feb 15, 2025):

I'm simply used to the behavior under Linux with a package manager - if there are no additional post-installation scripts, only the files that were present at the time of installation are cleaned up.

You're right about backing up the complete folder - it affects all user data in %USERPROFILE%\.ollama (e.g. also the prompt history) as well as %USERPROFILE%\AppData\Local\Ollama (server logs etc.) - not just the model files as initially stated.

I believe it is common for some other programs such as VLC to ask whether the user preferences should also be removed when uninstalling under Windows.

<!-- gh-comment-id:2661067718 --> @4goettma commented on GitHub (Feb 15, 2025): I'm simply used to the behavior under Linux with a package manager - if there are no additional post-installation scripts, only the files that were present at the time of installation are cleaned up. You're right about backing up the complete folder - it affects all user data in %USERPROFILE%\\.ollama (e.g. also the prompt history) as well as %USERPROFILE%\AppData\Local\Ollama (server logs etc.) - not just the model files as initially stated. I believe it is common for some other programs such as VLC to ask whether the user preferences should also be removed when uninstalling under Windows.
Author
Owner

@dhiltgen commented on GitHub (Jul 1, 2025):

Fixed in 0.9.4

<!-- gh-comment-id:3025837277 --> @dhiltgen commented on GitHub (Jul 1, 2025): Fixed in 0.9.4
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#31681