How to uninstall Ollama (portable zip version)

The portable zip version doesn’t create a service, a scheduled task, an autostart entry or firewall rules, so uninstalling it means stopping the process and deleting two folders. Before you start, back up your own work (prompts, scripts, documents, results); the models themselves can be downloaded again. In these commands the portable folder is C:\AI-LAB\ollama: change it to wherever you unzipped Ollama.

Stop, measure and delete (PowerShell)
  1. Stop Ollama: Get-Process ollama -ErrorAction SilentlyContinue | Stop-Process -Force
  2. Measure what you are about to free: '{0:N1} GB' -f ((Get-ChildItem C:\AI-LAB\ollama -Recurse -Force | Measure-Object Length -Sum).Sum / 1GB)
  3. Delete the portable folder (program, models and zip): Remove-Item -Recurse -Force C:\AI-LAB\ollama
  4. Delete the profile folder: Remove-Item -Recurse -Force "$env:USERPROFILE\.ollama"

Remove-Item -Recurse -Force deletes without asking and without the Recycle Bin. Read the path twice before you press Enter.

How to check that nothing is left

Don’t stop at “the folder is gone”. Run each line; the expected result is in the comment after the #.

Six checks after uninstalling (PowerShell)
  1. Get-Process ollama -ErrorAction SilentlyContinue # nothing
  2. Get-NetTCPConnection -LocalPort 11434 -ErrorAction SilentlyContinue # nothing: port free
  3. Get-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Run # no Ollama entry
  4. Get-ScheduledTask | Where-Object TaskName -like '*ollama*' # nothing
  5. Test-Path "$env:USERPROFILE\.ollama" # False
  6. nvidia-smi --query-gpu=memory.used --format=csv # VRAM back to idle

Our result after one uninstall: 41.9 GB freed, 0 processes, port 11434 free, no autostart entry, no scheduled tasks, neither folder left, and VRAM in use back to 1.1 GB.

If you used Ollama’s regular installer

The regular installer sets Ollama up as an app that starts with Windows. We didn’t test what it leaves behind, so take this part as a checklist rather than a measured result: quit Ollama from the icon in the system tray, uninstall it like any other Windows app, and then delete the models, which the installed app keeps under %USERPROFILE%\.ollama by default (or in the folder you chose with OLLAMA_MODELS, if you set it). Then run the same six checks above; they are what tell you it’s really gone.

If you set Ollama variables for your user (OLLAMA_MODELS, OLLAMA_CONTEXT_LENGTH, OLLAMA_KEEP_ALIVE and so on), they stay after uninstalling. Remove each one with [Environment]::SetEnvironmentVariable('OLLAMA_MODELS', $null, 'User'), changing the name.

If you also installed apps that use Ollama, such as OpenCode, uninstall them following their own documentation and delete the project’s opencode.json if you no longer use it.

Where the space goes, and how to free it without uninstalling

The program is small next to the models. On our test PC, about 40 GB of models plus the program and its zip came to 41.9 GB in one folder. That is why it pays to choose the models folder yourself with OLLAMA_MODELS from the start: you know how much it takes, you can put it on another drive, and you delete everything with one folder.

If what you want is disk space and not to get rid of Ollama, delete only the models you no longer use: ollama list, then ollama rm <name>. One catch: space only comes back when the last name that uses those files is removed. In our test, removing a model that still had two other names pointing to the same files freed 2,347 bytes; removing the last two names freed 3.3 GB. Inside the models folder the files have internal names (blobs\sha256-…): don’t rename or move them by hand while Ollama is running.

  • Ollama zip: 1.6 GB (2.10 GB unzipped).
  • embeddinggemma:300m: 621 MB.
  • qwen3.5:4b: 3.3 GB.
  • qwen3.5:9b: 6.6 GB.
  • gemma4:12b: 8.0 GB.
  • qwen3.6:35b: 22 GB.

Before you uninstall: is it really broken?

Many people uninstall Ollama because something stopped working, and a reinstall rarely fixes it. Read Ollama’s log first: on our test PC it explained a model that wouldn’t start, an empty answer and a lost OpenCode session, none of which a reinstall would have changed. If the GPU is full or Ollama is slow, see how to unload a model and free VRAM, Ollama not using the GPU and Ollama error 500: unable to load model. If what worries you is privacy, running Ollama with no cloud connections may be what you need instead.

Frequently asked questions

Does uninstalling Ollama delete the models?Not necessarily. The models live in %USERPROFILE%\.ollama by default, or wherever OLLAMA_MODELS points. Delete that folder yourself and check with Test-Path that it’s gone.

How much space does Ollama take on Windows?Mostly the models. On our test PC, five models plus the program and its zip took 41.9 GB. A single small model such as qwen3.5:4b is 3.3 GB.

I deleted a model and the space didn’t come back. Why?Another model name still uses the same files. Space only returns when the last name that uses them is removed with ollama rm.

How do I know Ollama is really gone?Run the six checks: no ollama process, port 11434 free, no autostart entry, no scheduled task, no .ollama folder and VRAM back to idle.