Ollama is easy to install, but it is surprisingly easy to leave behind. Uninstalling the app often keeps tens or even hundreds of gigabytes of models on your disk, plus a background service on Linux, environment variables on Windows and cache folders on a Mac.
This guide shows how to fully delete Ollama on Windows, macOS, Linux, Docker and Homebrew. It covers how to remove single models when you only want space back, how to find models stored in a custom folder, and how to check nothing is left.
Commands are taken from Ollama’s official install docs on GitHub, checked in November 2026.
- Just need space? Run
ollama listthenollama rm model-name. No need to uninstall. - Windows: quit Ollama from the tray, uninstall it in Settings > Apps > Installed apps, then delete
%HOMEPATH%\.ollama(models) and%LOCALAPPDATA%\Ollama(logs). - macOS: quit the app, delete
/Applications/Ollama.app,/usr/local/bin/ollama,~/.ollamaand the Library cache folders. - Linux: stop and disable the
ollamasystemd service, remove the binary and libraries, delete/usr/share/ollamaand theollamauser and group. - Custom model folder? If you set
OLLAMA_MODELS, the uninstaller does not delete those models. Remove that folder and the variable yourself. - Docker: remove the container and the
ollamavolume.
Before You Start: Remove Models or the Whole App?
Most people who search “how to delete Ollama” actually want disk space back. The Ollama program itself is small. The models are what fill your drive: a single 70B model can take 40 GB or more.
| Your goal | What to do |
|---|---|
| Free disk space but keep using Ollama | Delete unused models with ollama rm |
| Move models to a bigger drive | Set OLLAMA_MODELS and move the folder (see our move Ollama models guide) |
| Fix a broken install | Uninstall the app but keep .ollama, then reinstall (models are reused) |
| Switch to another tool | Uninstall fully, or keep the GGUF files you want to reuse elsewhere |
| Remove every trace | Follow the full steps for your system below |
Switching tools? LM Studio and Jan are popular desktop alternatives. Note that Ollama stores models as hashed “blob” files, so you cannot simply drag them into another app.
How to Delete Ollama Models Only
- Open a terminal (PowerShell or Command Prompt on Windows, Terminal on Mac or Linux).
- List your models with their sizes:
ollama list - Stop a model if it is loaded: check with
ollama ps, then runollama stop model-name. - Delete a model:
ollama rm llama3.2(use the exact name and tag from the list, for exampleqwen3:8b). - Repeat for each model you no longer need, then run
ollama listagain to confirm.
ollama list
ollama ps
ollama stop qwen3:8b
ollama rm qwen3:8b
Ollama shares layers between models that use the same base files, so deleting one tag frees the space only once no other model uses those layers.
Where Ollama Stores Files
Knowing the locations makes the clean-up quick. These are the defaults from Ollama’s docs:
| What | Windows | macOS | Linux (installer) |
|---|---|---|---|
| Models | C:\Users\%username%\.ollama\models |
~/.ollama/models |
/usr/share/ollama/.ollama/models |
| Program | %LOCALAPPDATA%\Programs\Ollama |
/Applications/Ollama.app + /usr/local/bin/ollama |
/usr/local/bin/ollama (or /usr/bin) + lib/ollama |
| Logs and updates | %LOCALAPPDATA%\Ollama |
~/.ollama/logs |
systemd journal |
| Temp files | %TEMP%\ollama* |
Library caches | n/a |
| Service | Tray app | Menu bar app | /etc/systemd/system/ollama.service |
If you ever set the OLLAMA_MODELS environment variable, your models are in that folder instead. Check it before you start:
# Windows PowerShell
echo $env:OLLAMA_MODELS
# macOS / Linux
echo $OLLAMA_MODELS
systemctl show ollama --property=Environment # Linux service
Uninstall Ollama on Windows
- Quit Ollama. Right-click the llama icon in the system tray (near the clock) and choose Quit Ollama. This stops the background server so files are not locked.
- Uninstall the app. Open Settings > Apps > Installed apps (Windows 11) or Add or remove programs, find Ollama, click the three dots and choose Uninstall. Ollama’s docs confirm the installer registers this uninstaller.
- Delete your models and config. Press Win + R, type
explorer %HOMEPATH%\.ollamaand delete the.ollamafolder. - Delete logs and downloaded updates. Press Win + R, type
explorer %LOCALAPPDATA%\Ollamaand delete that folder. - Check the program folder is gone:
explorer %LOCALAPPDATA%\Programs\Ollama. Delete it if anything remains. - Clear temp files: open
%TEMP%and delete any folders starting withollama. - Remove environment variables. Search the Start menu for environment variables, open Edit environment variables for your account, and delete
OLLAMA_MODELS,OLLAMA_HOSTor any otherOLLAMA_*entries. - Delete a custom model folder if
OLLAMA_MODELSpointed somewhere else, such asD:\ollama\models. The uninstaller does not touch it.
Prefer PowerShell? After quitting and uninstalling, this removes the usual leftovers:
Remove-Item -Recurse -Force "$env:USERPROFILE\.ollama"
Remove-Item -Recurse -Force "$env:LOCALAPPDATA\Ollama"
Remove-Item -Recurse -Force "$env:LOCALAPPDATA\Programs\Ollama" -ErrorAction SilentlyContinue
[Environment]::SetEnvironmentVariable("OLLAMA_MODELS", $null, "User")
[Environment]::SetEnvironmentVariable("OLLAMA_HOST", $null, "User")
Double-check every path before running delete commands. They cannot be undone.
Installed with the standalone zip or as a service?
If you used ollama-windows-amd64.zip (for example with NSSM as a service), there is no uninstaller. Stop and remove the service first (nssm stop ollama then nssm remove ollama), then delete the folder where you extracted the zip and the .ollama folder.
Uninstall Ollama on macOS
- Quit Ollama from the menu bar icon (Quit Ollama). Check Activity Monitor that no
ollamaprocess is running. - Open Terminal and run the removal commands from Ollama’s docs below.
- Empty the Trash if you dragged anything there, and remove Ollama from System Settings > General > Login Items if it still shows.
sudo rm -rf /Applications/Ollama.app
sudo rm /usr/local/bin/ollama
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
rm -rf ~/.ollama
The last line deletes all your models. Skip it if you plan to reinstall and want to keep them. If you set OLLAMA_MODELS (for example with launchctl setenv), delete that folder too and run launchctl unsetenv OLLAMA_MODELS.
Uninstall Ollama on Linux
These steps match an install from the official install.sh script, which sets up a systemd service and an ollama system user.
- Stop and disable the service.
sudo systemctl stop ollama
sudo systemctl disable ollama
sudo rm /etc/systemd/system/ollama.service
sudo systemctl daemon-reload
- Remove the libraries (in
/usr/local/lib,/usr/libor/lib). Ollama’s docs use this trick, which turns the binary path into the matching lib path:
sudo rm -r $(which ollama | tr 'bin' 'lib')
- Remove the binary:
sudo rm $(which ollama)
- Delete models and the service account:
sudo userdel ollama
sudo groupdel ollama
sudo rm -r /usr/share/ollama
- Clean up extras: delete any override folder at
/etc/systemd/system/ollama.service.d/, your own~/.ollamaif you ever ranollama serveas your user, and any customOLLAMA_MODELSfolder.
Run step 2 before step 3, because it needs which ollama to still find the binary.
Remove Ollama From Docker
If you followed our Ollama Docker guide, the models live in a Docker volume, usually named ollama.
docker stop ollama
docker rm ollama
docker volume rm ollama # deletes all models in the volume
docker rmi ollama/ollama # removes the image
If you used a bind mount instead (for example -v ~/ollama:/root/.ollama), delete that host folder. With Docker Compose, run docker compose down -v in the project folder to remove the containers and named volumes together. Check the volume name first with docker volume ls.
Homebrew, WSL and Other Installs
| Install method | How to remove |
|---|---|
| Homebrew formula | brew services stop ollama then brew uninstall ollama; delete ~/.ollama for models |
| Homebrew cask (app) | brew uninstall --cask ollama (or --zap to remove app data too); delete ~/.ollama |
| WSL2 (Ubuntu inside Windows) | Follow the Linux steps inside WSL. Windows uninstall does not touch it. See our WSL2 local AI guide |
| Pinokio or other launchers | Remove it from the launcher, then check for a .ollama folder |
| Manual Linux tarball | Delete the extracted bin and lib/ollama files and any service you created |
Check Nothing Is Left
- Open a new terminal and run
ollama --version. You should get “command not found” or “not recognized”. - Check port 11434 is free: open
http://localhost:11434in a browser. It should fail to load. - Search for leftovers: on Windows run
where.exe ollama; on Mac or Linux runwhich ollamaandls -a ~ | grep ollama. - Check your disk space returned, especially the drive where models lived.
Troubleshooting
| Problem | Cause | Fix |
|---|---|---|
| “File in use” when deleting on Windows | Ollama still running in the tray | Quit from the tray, or end ollama.exe and ollama app.exe in Task Manager |
| Disk space did not come back | Models in a custom OLLAMA_MODELS folder |
Find the variable value and delete that folder |
ollama still runs after uninstall |
A second install (Homebrew, WSL, zip, Docker) | Use where.exe ollama or which -a ollama to find and remove it |
| Linux service keeps restarting | Service not disabled or unit file still present | Run the disable and remove commands, then systemctl daemon-reload |
userdel says user is in use |
A process still runs as ollama |
Stop the service, or sudo pkill -u ollama, then retry |
| Permission denied on Mac | Files owned by root | Use sudo for the /Applications and /usr/local/bin lines |
| Docker volume will not delete | A container still uses it | docker ps -a, remove the container, then delete the volume |
Uninstalling because the GPU was not being used? That is usually fixable without a reinstall; see our Ollama not using GPU fix.
FAQ
Does uninstalling Ollama delete my models?
Not always. On Windows the uninstaller removes the app, and models in a custom OLLAMA_MODELS folder are definitely kept. Delete the .ollama folder (or your custom folder) to remove models.
How much space do Ollama models use?
Small models are 1 to 5 GB, mid-size models 5 to 20 GB, and 70B-class models 40 GB or more. Run ollama list to see each size.
Can I reinstall later and keep my models?
Yes. Uninstall the app but keep the .ollama folder. A fresh install picks the models up again.
How do I delete just one Ollama model?
Run ollama rm model-name, using the name from ollama list.
Is it safe to delete the .ollama folder?
Yes, once Ollama is closed. It only holds models, keys and settings for Ollama. You will need to download models again if you reinstall.
How do I stop Ollama starting with Windows without uninstalling?
Disable it in Task Manager > Startup apps, or quit it from the tray when you do not need it.




