[GH-ISSUE #698] How to uninstall ollama ai on Linux #62359

Closed
opened 2026-05-03 08:25:13 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @scalstairo on GitHub (Oct 4, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/698

How can ollama be uninstalled on linux? Do not see an obvious entry the package listings

Originally created by @scalstairo on GitHub (Oct 4, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/698 How can ollama be uninstalled on linux? Do not see an obvious entry the package listings
Author
Owner

@BruceMacD commented on GitHub (Oct 4, 2023):

If you have any feedback to how we could improve Ollama, please let me know. Would love to hear your opinion.

Here is how you can uninstall:

  1. stop the ollama service:
$ systemctl stop ollama
  1. remove the ollama service from start-up:
$ systemctl disable ollama
  1. remove the ollama binary from your bin directory (either /usr/local/bin, /usr/bin, or /bin):
rm /usr/local/bin/ollama
  1. remove the downloaded models and configuration:
$ rm -r ~/.ollama
<!-- gh-comment-id:1747414474 --> @BruceMacD commented on GitHub (Oct 4, 2023): If you have any feedback to how we could improve Ollama, please let me know. Would love to hear your opinion. Here is how you can uninstall: 1. stop the ollama service: ``` $ systemctl stop ollama ``` 2. remove the ollama service from start-up: ``` $ systemctl disable ollama ``` 3. remove the ollama binary from your bin directory (either `/usr/local/bin`, `/usr/bin`, or `/bin`): ``` rm /usr/local/bin/ollama ``` 4. remove the downloaded models and configuration: ``` $ rm -r ~/.ollama ```
Author
Owner

@jameswilky commented on GitHub (Oct 7, 2023):

For me, the .ollama folder was in ~/usr/share/ollama, not ~/.

It would be neat to have an ollama update or ollama uninstall to basically do the above, so that we can upgrade llama as needed to keep up to date with new versions

<!-- gh-comment-id:1751661136 --> @jameswilky commented on GitHub (Oct 7, 2023): For me, the `.ollama` folder was in ~`/usr/share/ollama,` not `~/`. It would be neat to have an `ollama update` or `ollama uninstall` to basically do the above, so that we can upgrade llama as needed to keep up to date with new versions
Author
Owner

@pabloasanchez commented on GitHub (Oct 8, 2023):

The script also adds an ollama user, so additionally need to do
$ userdel ollama

<!-- gh-comment-id:1752008598 --> @pabloasanchez commented on GitHub (Oct 8, 2023): The script also adds an `ollama` user, so additionally need to do `$ userdel ollama`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#62359