If you searched for the command to remove a ollama model powershell can run, you probably have an Ollama installation filling your drive with models you no longer use. The cleanup itself is simple, but one small detail matters: Ollama identifies models by their exact names and tags. A missing tag, an extra space, or a model that is still being used can turn a one-line task into a confusing error. No panic, just logs. Let’s verify the model first, remove it deliberately, and confirm the disk space afterward.
The basic Ollama removal command
The command to remove a ollama model powershell users generally need is:
ollama rm model-name
For example, to remove Llama 3.2, open PowerShell and run:
ollama rm llama3.2
For a tagged model, include the tag exactly as Ollama displays it:
ollama rm llama3.2:3b
The rm subcommand deletes the local model managed by Ollama. It does not uninstall Ollama itself, remove your PowerShell profile, or delete unrelated files from your computer. If you installed Ollama for Windows using the standard installer, the command should work from PowerShell, Windows Terminal, or Command Prompt as long as the Ollama executable is available in your PATH.
Before deleting anything, list the local models:
ollama list
That output usually includes the model name, identifier, size, and modification date. Copy the name from the first column rather than typing it from memory. A model such as mistral:latest is not necessarily the same string as mistral:7b, even when the underlying family is related.

A safe PowerShell workflow
Here is the command to remove a ollama model powershell workflow I use on a test machine. First, inspect the inventory:
ollama list
Next, check whether a model is currently responding to a request. If you have a running interactive session, exit it with Ctrl+C before removing the model. Then run the removal command using the exact name:
ollama rm codellama:7b
Ollama should report that the model was removed. Run the inventory command again:
ollama list
If the model no longer appears, the logical cleanup is complete. For a more cautious workflow, record the model name and size before deleting it. A 7B model can occupy several gigabytes, while larger models can consume tens of gigabytes. This quick note helps you confirm whether the expected amount of storage became available.
PowerShell also lets you capture the output for a troubleshooting log. For example, run ollama list and review the result before changing anything. I prefer this approach on development machines because it creates a simple before-and-after record. The model was not the problem. The handoff was: someone removed a tag or assumed that a shortcut name represented every installed variant.
Finding the exact model name
Many failed removals happen because the name in the command does not match the name in Ollama’s inventory. Run:
ollama list
Then look for the complete value in the NAME column. If the list shows qwen2.5:7b, use qwen2.5:7b, not qwen2.5 and not qwen2.5:latest. Tags are meaningful references, and local model records can have different tags even when they come from the same model family.
The command to remove a ollama model powershell users copy from search results is often written with a placeholder such as model-name. Do not include the placeholder literally. Replace it with the actual value. For example, this is valid:
ollama rm phi3:mini
This is not a useful deletion command:
ollama rm model-name
If PowerShell says ollama is not recognized, check whether Ollama is installed and whether its executable is on PATH. You can test discovery with:
Get-Command ollama
If that command returns a path, PowerShell can find the executable. If it returns an error, restart Windows Terminal after installation, launch Ollama, or repair the installation before investigating model storage manually.

What to do when removal fails
If Ollama reports that a model is not found, run ollama list again and copy the exact name. The model might have been removed already, or the command may be missing a tag. If Ollama is busy, close an active generation, stop a local application using the Ollama API, and retry after a few seconds.
If the command to remove a ollama model powershell operation appears to hang, do not immediately delete folders from AppData. Manual deletion can leave metadata out of sync and makes future troubleshooting harder. First check whether the Ollama service is running and whether another request is downloading or loading a model. A large model can take time to release memory and complete file operations, especially on a laptop with a busy SSD.
You can inspect running processes in PowerShell with:
Get-Process ollama -ErrorAction SilentlyContinue
This does not tell you every client connected to Ollama, but it can confirm whether the main process exists. If you recently changed PATH or installed an update, opening a fresh PowerShell window is also worthwhile. Environment changes do not always appear in terminals that were already open.
Confirm storage and choose what stays
Removing an unused model is useful when you are short on disk space, but avoid treating every model as disposable. Keep the model you use for daily development, one smaller fallback for quick tests, and any model required by a project script. Delete duplicate tags and abandoned experiments first.
Windows Explorer can show free space on the drive, while PowerShell can provide a quick summary with Get-PSDrive -PSProvider FileSystem. Compare the free space before and after deletion. The number may not match the model’s displayed size perfectly because of filesystem reporting, shared layers, cached files, or other activity.
For a small workstation, a sensible maintenance routine is to run ollama list once a month, note models that have not been used recently, and remove one at a time. If you regularly download models for experiments, keep a short text file with the model name, purpose, and project that needs it. That prevents the familiar cycle of deleting a useful model and downloading it again the next morning.
The short answer
The command to remove a ollama model powershell users need is ollama rm followed by the exact model name. Start with ollama list, copy the complete name and tag, run the removal command, and verify with ollama list again. Use Get-Command ollama when PowerShell cannot find the executable, and avoid manual file deletion unless you are deliberately repairing a broken installation.
Let’s start with the smallest version that can prove the idea: list, remove one known model, and list again. That three-step loop is easier to audit than a bulk cleanup script and safer on a machine that also hosts active development work. A demo proves possibility. A deployment proves usefulness, and a clean local model inventory keeps both easier to operate.
No letters yet — be the first to write.