/ de-omarchy / bin / omarchy-remove-ai-ollama
swadhinbiswas Initial de-omarchy: Omarchy UI layer for Arch-based distros · 8/22/2026
9f393b2
19 lines · 502 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

# omarchy:summary=Remove Ollama along with every model it pulled.
# omarchy:requires-sudo=true

set -e

# The service is what holds the models open, so it goes before the package.
sudo systemctl disable --now ollama.service 2>/dev/null || true

# Whichever acceleration variant is installed provides the same command.
omarchy-pkg-drop ollama ollama-cuda ollama-rocm ollama-vulkan

sudo rm -rf /var/lib/ollama
rm -rf "$HOME/.ollama"

echo ""
echo "Ollama and its models have been removed."