How to Uninstall Ollama Completely: A Clean Slate Guide for Windows, macOS, and Linux
Setting up local LLMs is an exciting journey, but sometimes you just need to start over. Whether you’re moving to a Docker-based setup, troubleshooting a stubborn installation, or simply reclaiming dozens of gigabytes of disk space, knowing how to completely uninstall Ollama is essential.
At FutureFormDigital, we’re all about building resilient, independent digital workflows. Part of that resilience is knowing how to cleanly tear down what you’ve built so you can build it better next time.
In this guide, we’ll walk through the exact steps to wipe Ollama and its heavy model files from your system, regardless of whether you’re on Windows, Mac, or Linux.
Why a “Standard” Uninstall Isn’t Always Enough
When you delete an app, you often expect its data to vanish with it. With Ollama, the application binary itself is tiny, but the models (like Llama 3 or Mistral) can take up 4GB to 100GB+ each. If you don’t target the hidden folders, you might leave a massive “ghost” on your hard drive.
⚠️ Warning: These steps will delete your downloaded models. If you have custom-trained models or specific configurations you want to keep, back up the
.ollamafolder before proceeding.
1. How to Uninstall Ollama on Windows
Windows makes the initial process easy, but the model files often stay behind to haunt your storage.
Step 1: Use the Standard Uninstaller
- Open Settings > Apps > Installed Apps.
- Search for Ollama.
- Click the three dots and select Uninstall.
Step 2: Clean Up the Leftovers
The uninstaller generally leaves your models untouched. To reclaim that space:
- Press
Win + Rand type%HOMEPATH%. - Locate the
.ollamafolder. - Delete it.
Step 3: Clear App Data and Logs
Navigate to these locations and delete the Ollama folders if they still exist:
%LOCALAPPDATA%Ollama(Logs and updates)%LOCALAPPDATA%ProgramsOllama(Binaries)
2. How to Uninstall Ollama on macOS
If you installed Ollama by dragging it into your Applications folder, deleting the icon is only the first step.
The “Clean Sweep” Command
Open your terminal and run these commands to remove the app, the CLI link, and all cached data:
# Remove the application and CLI
sudo rm -rf /Applications/Ollama.app
sudo rm /usr/local/bin/ollama
# Clear application support and caches
rm -rf "~/Library/Application Support/Ollama"
rm -rf "~/Library/Saved Application State/com.electron.ollama.savedState"
rm -rf ~/Library/Caches/com.electron.ollama/
rm -rf ~/Library/Caches/ollama
rm -rf ~/Library/WebKit/com.electron.ollama
# The Big One: Remove all models and configs
rm -rf ~/.ollama
3. How to Uninstall Ollama on Linux (Ubuntu & Others)
Linux users usually have Ollama running as a background service (systemd). We need to stop the engine before we can pull the parts.
Step 1: Stop and Disable the Service
sudo systemctl stop ollama
sudo systemctl disable ollama
sudo rm /etc/systemd/system/ollama.service
Step 2: Remove the Binary and Libraries
sudo rm $(which ollama)
sudo rm -r /usr/share/ollama
Step 3: Cleanup the User and Group
Ollama often creates a dedicated user for security. Let’s tidy that up:
sudo userdel ollama
sudo groupdel ollama
Step 4: Delete the Models
Finally, remove the hidden configuration folder in your home directory:
rm -rf ~/.ollama
Troubleshooting: “I still see Ollama files!”
If you’ve followed the steps and things still feel “cluttered,” you can use the plocate tool on Linux to find hidden stragglers:
sudo apt install plocate && sudo updatedb
plocate ollama
FAQ: Frequently Asked Questions
| Question | Answer |
|---|---|
| Will uninstalling Ollama delete my models? | Yes, if you delete the .ollama folder as described in this guide. |
| Can I keep my models but delete the app? | Yes. Simply avoid deleting the ~/.ollama or %HOMEPATH%.ollama directory. |
| How do I know if Ollama is fully gone? | Type ollama in your terminal. If you get “command not found,” the binary is removed. |
| Why is my disk space still low after uninstalling? | You likely missed the .ollama folder where models are stored. Check your home directory! |
| Does Ollama leave registry entries on Windows? | Very few, mostly related to the Add/Remove programs list which the uninstaller clears. |
| What if I installed Ollama via Docker? | Just run docker stop ollama and docker rm ollama, then prune your volumes. |
| Can I reinstall Ollama immediately after? | Absolutely. A clean uninstall is actually the best way to fix a broken installation. |
| Are the logs deleted automatically? | On macOS and Linux, the manual commands above cover logs. On Windows, check %LOCALAPPDATA%Ollama. |
| Do I need root/admin privileges? | Yes, for removing system services and files in /usr/local/bin or Applications. |
| Is there an “official” uninstaller for Linux? | Currently, there isn’t a one-click script, which is why manual removal is the standard. |
FutureFormDigital Insight
If you’re uninstalling because Ollama feels “messy” or you’re worried about background processes, our recommendation is to move to a Docker-based workflow.
Running Ollama in a Docker container keeps your base OS pristine. When you’re done, you can wipe the container and the volume in seconds without hunting for hidden folders in your Library or /usr/share. It’s the most “resilient” way to experiment with AI without cluttering your daily-driver machine.
Are you uninstalling to try a different tool, or just to fix a bug? Let us know in the comments—we might have a fix that saves you a full reinstall!