From cecf83141e3813ad7e268521e6a95efce61cb146 Mon Sep 17 00:00:00 2001 From: Bruce MacDonald Date: Tue, 24 Oct 2023 14:07:05 -0400 Subject: [PATCH] Linux uninstall instructions (#894) --- docs/linux.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/linux.md b/docs/linux.md index 406fdae7..2433b582 100644 --- a/docs/linux.md +++ b/docs/linux.md @@ -80,3 +80,23 @@ To view logs of Ollama running as a startup service, run: ```bash journalctl -u ollama ``` + +## Uninstall + +Remove the ollama service: +```bash +systemctl stop ollama +systemctl disable ollama +rm /etc/systemd/system/ollama.service +``` + +Remove the ollama binary from your bin directory (either `/usr/local/bin`, `/usr/bin`, or `/bin`): +```bash +rm /usr/local/bin/ollama +``` + +Remove the downloaded models and Ollama service user: +```bash +rm /usr/share/ollama +userdel ollama +```