# How to delete Ollama models and keep the rest of your downloads tidy

Local models pile up fast and each one is gigabytes. Here are the exact Ollama commands to remove one model or all of them, see what you have, stop what's running, update, and move the whole store to another drive.

Updated Nov 22, 2026 · By Ari Vale

This page has referral links: we earn a commission if you buy, at no cost to you.

Our Vast referral code: 623346 (link: https://cloud.vast.ai/?ref_id=623346). New users get no bonus from it; we earn 3% of what referred users spend (Vast's referral program docs: https://docs.vast.ai/guides/reference/referral-program?ref_id=623346).

## Remove a model in Ollama: `ollama rm <name>`

To remove (delete) an Ollama model, run **`ollama rm <model>`** with the exact name from `ollama ls`, for example `ollama rm llama3.1:8b`. Ollama unloads the model if it's running, deletes it, and prints `deleted 'llama3.1:8b'`. You can name several models in one command. There is no confirmation prompt, so check the name first.

```bash
ollama ls                              # find the exact NAME, including the tag
ollama rm llama3.1:8b                  # delete one model
ollama rm llama3.1:8b qwen3:8b         # delete several at once
```

That's the whole answer for most people. The rest of this page covers the other housekeeping jobs: removing everything, listing, stopping, updating and moving [Ollama](https://aliteq.com/ollama-vs-lm-studio-which-should-you-use) models.

> **Updated November 22, 2026**
>
> Commands re-checked against Ollama's CLI reference, FAQ, API docs, source code and the [Linux](https://aliteq.com/windows-vs-linux-for-local-ai), macOS and Windows install pages on November 22, 2026; the newest release that day was v0.40.17 (November 10, 2026). `ollama rm`, `ollama ls`, `ollama ps`, `ollama stop`, the 5-minute keep-alive default, the model folders and the uninstall steps are unchanged from our November 14 check. We read the docs and source; we did not run a test machine for this page.

## The commands at a glance

- **`ollama rm <model>`** deletes a model (several names allowed), unloading it first if it's running.
- **`ollama ls`** (or `ollama list`) shows every downloaded model with NAME, ID, SIZE and MODIFIED.
- **`ollama ps`** shows what's loaded in memory right now; **`ollama stop <model>`** unloads one.
- **`ollama pull <model>`** downloads a model, or updates it if you run it again.
- **Models live in `~/.ollama/models`** on a Mac, `/usr/share/ollama/.ollama/models` on Linux and `C:\Users\%username%\.ollama\models` on Windows. Set `OLLAMA_MODELS` to move them.

## How to remove all Ollama models at once

Ollama has no built-in "remove all" command: `ollama rm` needs at least one model name. So you feed it the NAME column of `ollama ls`. The first line of that output is the header row, which is why both loops below skip it.

```bash
# macOS / Linux: delete every downloaded model
ollama ls | awk 'NR>1 {print $1}' | xargs ollama rm
```

```powershell
# Windows PowerShell: delete every downloaded model
ollama ls | Select-Object -Skip 1 | ForEach-Object { ollama rm ($_ -split '\s+')[0] }
```

These loops are ours, built from the documented commands, so run `ollama ls` first and make sure you really want everything gone. To keep a few, delete by name instead. Re-downloading a model later is one `ollama pull`.

## How to list and check downloaded Ollama models

Run **`ollama ls`**, the short alias for `ollama list`. It prints one row per downloaded model with four columns: NAME, ID, SIZE and MODIFIED. NAME is what you pass to `rm`, `run` and `show`. SIZE is the disk space that model's files take.

```bash
ollama ls                   # every downloaded model and its size
ollama show qwen3:8b        # details for one model: parameters, quantization, context, license
ollama cp qwen3:8b my-qwen  # copy a model under a new name (e.g. before customizing it)
```

The two you'll run most are **`ollama ls`** (to see what's taking up space) and **`ollama rm`** (to clear out models you tried once and don't use). Since [models are gigabytes each](https://aliteq.com/best-local-llm-vram-tiers-what-actually-fits), a quick look every so often keeps your disk healthy.

![A terminal and command line interface](https://media.aliteq.com/media/2026/07/b23-term-body.jpg)
ls, rm, ps, stop, pull: five Ollama commands cover almost all model housekeeping. · Unsplash

## How to stop a running model (or all of them)

Run **`ollama stop <model>`** to unload a model from memory right away. Without it, [Ollama](https://aliteq.com/ollama) keeps a model loaded for 5 minutes after its last request, then unloads it. Stopping frees VRAM and RAM. It does not delete anything from disk.

`ollama ps` shows what's loaded. Its PROCESSOR column also tells you where the model sits: "100% GPU", "100% CPU", or a split like "48%/52% CPU/GPU", which means part of it spilled into system memory and will run slower. Our guide on [how to speed up local LLM inference](https://aliteq.com/how-to-speed-up-local-llm-inference) covers what to try first when that happens, and [how much VRAM you need to run AI models](https://aliteq.com/how-much-vram-do-you-need-to-run-ai-models) explains why the split appears.

**Seeing a CPU/GPU split in ollama ps?** That model is too big for your card. Pick a smaller one, or rent a 24GB RTX 3090 by the hour and see the model at 100% GPU before you buy anything. The link opens Vast.ai with Ollama and Open WebUI already set up, ready to chat. [Run Ollama on a rented 24GB card](https://cloud.vast.ai/?template_id=26e7446a7d6906ee366b620c84e1e422&ref_id=623346) (Referral link: we earn a commission if you buy.) Live RTX 3090 prices on Vast.ai, from and typical: https://aliteq.com/vast-ai-pricing

`ollama stop` takes exactly one model name, so stopping everything is another small loop:

```bash
# macOS / Linux: unload every running model
ollama ps | awk 'NR>1 {print $1}' | xargs -n1 ollama stop
```

```powershell
# Windows PowerShell: unload every running model
ollama ps | Select-Object -Skip 1 | ForEach-Object { ollama stop ($_ -split '\s+')[0] }
```

To change the 5-minute default for every model, set the `OLLAMA_KEEP_ALIVE` environment variable on the server. It takes a duration like "10m" or "24h", a number of seconds, 0 to unload right after each answer, or a negative number to keep models loaded indefinitely. Apps that call the API can override it per request with the `keep_alive` parameter.

## How to update an Ollama model

Run **`ollama pull <model>`** again. It fetches the current version of that tag. There is no separate update command. Ollama prunes unused model files when the server starts, unless you set `OLLAMA_NOPRUNE`, so an update doesn't leave an old copy filling your disk.

This is worth doing for models you rely on, since a re-published tag can include fixes. Updating Ollama itself is a different job. On Windows the app downloads its own updates (Ollama's Windows docs list the folder they land in). On Linux, run the install script again.

## Where Ollama stores models, and how to move them

Ollama's FAQ gives the default model folders:

### Where Ollama keeps downloaded models (Ollama FAQ, read Nov 22, 2026)

|   | Default folder |
| --- | --- |
| macOS | ~/.ollama/models |
| Linux (standard installer) | /usr/share/ollama/.ollama/models |
| Windows | C:\Users\%username%\.ollama\models |

To use a bigger drive, set the **`OLLAMA_MODELS`** environment variable to the new folder and restart Ollama. On Windows: quit Ollama from the taskbar, open Settings and search "environment variables", add `OLLAMA_MODELS` for your account, then start Ollama again. On a Mac running the app, use `launchctl setenv OLLAMA_MODELS /path/to/folder` and restart the app. On Linux with systemd, add `Environment="OLLAMA_MODELS=/path/to/folder"` under `[Service]` via `systemctl edit ollama.service`, then reload and restart. The Linux service runs as the `ollama` user, so give it the folder with `sudo chown -R ollama:ollama /path/to/folder`.

Changing the variable doesn't move files that are already downloaded. Either re-pull the models you want, or move the old folder's contents yourself before restarting.

Deleting the folder by hand is the blunt alternative to `ollama rm`, and it's easy to get wrong. Use `rm` for models. Reach for the folder only when you are uninstalling Ollama completely. Ollama's uninstall docs list the folders for each system, and note that on Windows the uninstaller won't remove models you moved with `OLLAMA_MODELS`.

## How to uninstall Ollama completely

`ollama rm` removes models; it leaves Ollama installed. To remove Ollama **and** every model, follow the steps from Ollama's own install pages (read November 22, 2026):

|   | Remove the app | Remove the models |
| --- | --- | --- |
| Windows | Settings, Add or remove programs, Ollama, Uninstall | The uninstaller does not delete models you moved with `OLLAMA_MODELS`; delete that folder yourself |
| macOS | `sudo rm -rf /Applications/Ollama.app` and `sudo rm /usr/local/bin/ollama` | `rm -rf ~/.ollama`, plus the Ollama folders under `~/Library` (Application Support, Caches, Saved Application State, WebKit) |
| Linux | `sudo systemctl stop ollama`, `sudo systemctl disable ollama`, `sudo rm /etc/systemd/system/ollama.service`, then `sudo rm $(which ollama)` and the `lib/ollama` folder | `sudo userdel ollama`, `sudo groupdel ollama`, `sudo rm -r /usr/share/ollama` |

If you only want the disk space back, you don't need to uninstall: delete all models with the loop above and keep Ollama for later.

## Deleting a model from code

If you manage Ollama from a script or an app, the API has a delete endpoint. It does the same job as `ollama rm` for one model:

```bash
curl -X DELETE http://localhost:11434/api/delete -d '{"model": "llama3.1:8b"}'
```

Short on space and wondering what to keep? On a 12GB or 16GB graphics card, a well-chosen [mixture-of-experts model](https://aliteq.com/best-moe-models-for-12gb-16gb-gpu) often replaces two or three smaller dense ones. That's a good excuse for a cleanup. Use the [VRAM calculator](https://aliteq.com/tools/vram-calculator) to check a model fits before you pull it. If the model you want needs 24GB, a used [RTX 3090](https://aliteq.com/gpus/rtx-3090) is the cheapest card that holds it at home, and our [24GB model picks](https://aliteq.com/best-local-llm-24gb-gpu-qwen-gemma-gptoss) show what that buys you; [the best GPU for local AI](https://aliteq.com/best-gpu-for-local-ai) compares it with the 4090 and 5090 at today's prices. Renting is the other route: a 24GB RTX 3090 costs from $0.10/hr, typical $0.20/hr on demand (Nov 22, 2026), and [our rent vs buy breakdown](https://aliteq.com/rent-vs-buy-gpu-ai-cloud-vs-local) shows when it is cheaper; [live cloud GPU prices](https://aliteq.com/cloud-gpu) are updated every hour.

**Disk and VRAM both full?** A rented GPU comes with its own disk, so you can try a big model there without downloading 20 GB onto your own PC. Runpod runs its Secure Cloud pods in datacenters and has one-click templates, so it's the managed option. Stop the pod when you're done and nothing is left on your machine. [Rent a 24GB RTX 4090 on Runpod](https://console.runpod.io/signup?ref=nuninlts) (Referral link: we earn a commission if you buy.) Live RTX 4090 prices on Runpod, from and typical: https://aliteq.com/runpod-pricing

The same Ollama commands work for uncensored models: `ollama run dolphin3` pulls one that fits an 8GB GPU, and [this explainer on uncensored local models](https://aliteq.com/how-to-run-uncensored-ai-models-locally) covers the licence rules that still apply. If you'd rather use a chat window than the terminal, compare [Open WebUI and LM Studio](https://aliteq.com/open-webui-vs-lm-studio), and to call your models from other apps see [how to run local AI as an API server](https://aliteq.com/how-to-run-local-ai-as-an-api-server). Coding agents use the same model store, as our guide to [running coding agents on local models with Ollama](https://aliteq.com/run-coding-agents-on-local-models-ollama) shows. For fiction and roleplay, [our creative-writing picks](https://aliteq.com/best-local-llm-for-creative-writing-roleplay) name the fine-tunes worth pulling for each card size.

Related guides: [how to run local AI in Docker — a clean, portable, reproducible setup in minutes](https://aliteq.com/how-to-run-local-ai-in-docker), [how to run a local AI on a Raspberry Pi — a pocket-sized offline chatbot for $80](https://aliteq.com/how-to-run-ai-on-a-raspberry-pi), [can you run your own AI without buying a graphics card? (yes — here's how)](https://aliteq.com/can-you-run-ai-without-a-gpu).

## Quick answers

**Q: How do I delete a model in Ollama?**

A: Run ollama rm followed by the model name exactly as ollama ls shows it, for example ollama rm llama3.1:8b. Ollama unloads the model if it is running, deletes it and prints deleted with the name. You can list several names in one command. There is no confirmation prompt.

**Q: How do I remove all Ollama models at once?**

A: There is no built-in remove-all command. On macOS or Linux, run ollama ls piped into awk 'NR>1 {print $1}' and then into xargs ollama rm. That skips the header row and deletes every listed model. On Windows PowerShell, skip the first line of ollama ls and run ollama rm on the first column of each row.

**Q: How do I see which models I have downloaded in Ollama?**

A: Run ollama ls (the same as ollama list). It shows each model's name, ID, size on disk and when it was last modified. To see which models are loaded in memory right now, run ollama ps instead.

**Q: How do I stop all running Ollama models?**

A: ollama stop unloads one model at a time, so loop over ollama ps: on macOS or Linux, ollama ps piped into awk 'NR>1 {print $1}' and then into xargs -n1 ollama stop. Stopping frees memory but keeps the model on disk. Idle models also unload on their own after 5 minutes by default.

**Q: Does ollama rm free up disk space?**

A: Yes. It deletes the model from Ollama's model folder, so the space comes back. Files shared with another model you still have stay until nothing uses them, so deleting one of two copies made with ollama cp frees almost nothing. Run ollama ls before and after to see the sizes.

**Q: How do I uninstall Ollama completely?**

A: On Windows, uninstall Ollama from Add or remove programs, then delete any custom OLLAMA_MODELS folder, which the uninstaller leaves behind. On macOS, delete Ollama.app, /usr/local/bin/ollama and the ~/.ollama folder. On Linux, stop and disable the ollama service, delete the service file, the binary and /usr/share/ollama, and remove the ollama user and group.

**Q: Is there an ollama pull list of available models?**

A: No command lists the online catalogue. Browse the models on ollama.com/search, then download one with ollama pull and its name. ollama ls lists only the models already on your computer.

**Q: How do I update a model in Ollama?**

A: Pull it again with ollama pull and the model name. Ollama fetches the current version of that tag; there is no separate update command. Unused old files are pruned when the Ollama server starts, unless OLLAMA_NOPRUNE is set.

Managing local models comes down to five Ollama commands, ls, rm, ps, stop and pull, plus a bit of disk discipline. Keep your go-to [models](https://aliteq.com/best-local-llm-vram-tiers-what-actually-fits) installed, remove the rest, and [size them to your hardware](https://aliteq.com/tools/vram-calculator). New to Ollama? Start with the [beginner's guide](https://aliteq.com/how-to-run-a-local-llm-on-your-pc-beginners-guide) and the [Ollama vs LM Studio](https://aliteq.com/ollama-vs-lm-studio-which-should-you-use) comparison. Want your models inside an editor? See [how to use Ollama with Claude Code](https://aliteq.com/how-to-use-ollama-with-claude-code), [how to use Ollama with OpenCode](https://aliteq.com/how-to-use-ollama-with-opencode) or [how to use Ollama with Codex CLI](https://aliteq.com/how-to-use-ollama-with-codex-cli). Picking what to download next? [The best local LLM for 16GB VRAM](https://aliteq.com/best-local-llm-16gb-vram) and [the best local LLM for 12GB VRAM](https://aliteq.com/best-local-llm-12gb-vram) list models that fit.

## Sources

- [Ollama docs, CLI reference (official docs, read Oct 4, 2026)](https://github.com/ollama/ollama/blob/main/docs/cli.mdx)
- [Ollama docs, FAQ: model storage, keep_alive, environment variables (official docs, read Oct 4, 2026)](https://github.com/ollama/ollama/blob/main/docs/faq.mdx)
- [Ollama source, cmd/cmd.go: rm, stop, list and ps definitions (source code, read Oct 4, 2026)](https://github.com/ollama/ollama/blob/main/cmd/cmd.go)
- [Ollama docs, API: Delete a Model (official docs, read Oct 4, 2026)](https://github.com/ollama/ollama/blob/main/docs/api.md)
- [Ollama source, envconfig/config.go: OLLAMA_MODELS, OLLAMA_KEEP_ALIVE, OLLAMA_NOPRUNE (source code, read Oct 4, 2026)](https://github.com/ollama/ollama/blob/main/envconfig/config.go)
- [Ollama releases, v0.40.17 of Nov 10, 2026 (release notes, read Nov 22, 2026)](https://github.com/ollama/ollama/releases)
- [Ollama docs, CLI Reference: Remove a model, List models, Stop a running model (official docs, read Nov 22, 2026)](https://docs.ollama.com/cli)
- [Ollama docs, Local FAQ: Where are models stored, OLLAMA_MODELS, keep_alive (official docs, read Nov 22, 2026)](https://docs.ollama.com/faq)
- [Ollama docs, Linux: Uninstall (official docs, read Nov 22, 2026)](https://docs.ollama.com/linux)
- [Ollama docs, macOS: Uninstall (official docs, read Nov 22, 2026)](https://docs.ollama.com/macos)
- [Ollama docs, Windows: Uninstall (official docs, read Nov 22, 2026)](https://docs.ollama.com/windows)

---

Canonical: https://aliteq.com/how-to-manage-local-ai-models-ollama

This page has referral links: we earn a commission if you buy, at no cost to you.
