How to delete a model in Ollama?

To delete a model in Ollama, run ollama rm followed by the model name, for example ollama rm gemma4; Ollama’s CLI reference lists this as the command to remove a model.

As of December 5, 2026, Ollama’s official documentation describes these steps:

  • Run ollama ls to list the models you have downloaded and copy the exact name.
  • To see whether a model is loaded, run ollama ps; ollama stop <model> unloads it.
  • Run ollama rm <model> to remove it.
  • From code, send a DELETE request to http://localhost:11434/api/delete with a JSON body such as {"model": "gemma4"}; a 200 response means the model was deleted.

Ollama’s FAQ says downloaded models are stored in ~/.ollama/models on macOS, /usr/share/ollama/.ollama/models on Linux and C:\Users\%username%\.ollama\models on Windows, unless you set a different folder with the OLLAMA_MODELS environment variable.

Related: Where does Ollama store models?, How to uninstall Ollama? and Ollama New Features: Power-User Guide

Source: Ollama Docs, CLI Reference; Ollama API Docs, Delete a model; Ollama FAQ

Image: Ollama logo by ParthSareen on behalf of Ollama, MIT License, via Wikimedia Commons. Placed on a white background and resized. FreeAnswers is not affiliated with or endorsed by Ollama.



Related answers

Leave a Comment