macOS cleanup guides / Models and uninstalling

Where are Ollama models stored on Mac, and how do you uninstall Ollama?

On macOS, Ollama stores local models in ~/.ollama/models by default. Downloaded models, the app, and other user data occupy different locations. Check the server’s actual model path before removing anything.

Removing the app does not remove its model library

Use Ollama to remove individual models. For a full uninstall, identify the installation method, stop the app or service, then decide separately which user data to keep. Do not treat the entire ~/.ollama directory as a disposable cache.

Manage Ollama manually with its own tools

AgentClean does not currently support Ollama. Follow the manual steps below to inspect models or uninstall it; AgentClean is an option only for other tools on its supported list.

Read the manual steps

For separately supported tools · Ollama is not supported

01 / Find the model files

Where are Ollama models stored on macOS?

The default model directory is ~/.ollama/models, where ~ means your home folder. In Finder, press ⇧⌘G, paste that path, and use Get Info to inspect its size. A custom OLLAMA_MODELS setting can point elsewhere.

Ollama locations and their roles
LocationWhat it containsHow to handle it
~/.ollama/modelsThe default local model store.Use Ollama’s model commands to manage individual models.
models/blobs and models/manifestsModel data layers and references to those layers.These are implementation details. Do not remove blobs or manifests by hand; models may share layers.
~/.ollamaModels plus other data, which may include keys, configuration, logs, and CLI history.Review and back up what you need before any broader removal.
/Applications/Ollama.appThe app bundle for a typical direct installation.Removing the app bundle is separate from removing model and user data.

02 / Check custom paths

Which model directory does your running server use?

Read the shell and macOS launch environment settings
printf '%s\n' "${OLLAMA_MODELS-}"
launchctl getenv OLLAMA_MODELS

The first line reads OLLAMA_MODELS in this shell; the second reads the current user’s launchctl setting. A GUI app launched from Finder does not necessarily inherit your Terminal environment. Blank output from one check does not prove that the running server uses the default path.

For the macOS app, Ollama documents setting environment variables with launchctl setenv and restarting the app. A terminal-launched ollama serve or a Homebrew service may have separate startup settings. Inspect the configuration of the server you actually use; changing a variable does not move existing models, and a running process keeps its previous environment until restarted.

Confirm that you are managing this Mac

If OLLAMA_HOST points to another server, model commands act on that server. Container volumes and remote model stores are separate from this Mac’s default directory. Verify the target before measuring or deleting models.

03 / Measure first

Compare model names, loaded memory, and disk usage

List available models and models loaded in memory
ollama list
ollama ps

ollama list shows model names and tags; ollama ps shows models currently loaded in memory. Their sizes describe different things. Model variants and tags may share underlying layers, so adding every listed size does not give unique disk usage or guaranteed savings.

Measure the default model directory and its volume
du -sh "$HOME/.ollama/models"
df -h "$HOME/.ollama/models"

These commands only read sizes. If your model path is custom, replace both paths with the verified directory, keeping the quotation marks. du measures directory usage and df reports the containing volume. A missing path or permission error is not a measurement of zero.

04 / Remove selected models

Use ollama rm for models you no longer need

Keep the server running for model management. Finish active requests and preserve any custom Modelfiles, source weights, and settings needed to recreate your work. Replace NAME below with the exact model name and tag from ollama list.

Unload a selected model from memory
ollama stop NAME

ollama stop releases the loaded model from memory; it does not delete its downloaded files. Once you have confirmed you no longer need that model, run the separate removal command.

Remove the selected model from Ollama
ollama rm NAME

ollama rm removes the selected model without sending it to Finder’s Trash. Layers still needed by another model can remain, so the freed space can be smaller than the listed size. Run ollama list and repeat the directory measurement afterward. Reusing a removed model may require downloading or importing it again.

05 / Uninstall by installation method

How to uninstall Ollama on Mac

If you only want to free model storage, you can keep the app and remove selected models above. To uninstall Ollama, finish model management first, quit the app, stop active requests, and identify how each installed copy was installed.

Inspect CLI locations and the usual app-created link
type -a ollama
ls -l /usr/local/bin/ollama

For a direct download, move the verified Ollama.app installation to Trash in Finder. The app may have created /usr/local/bin/ollama as a link to its bundled CLI. Inspect the ls -l target; remove that link only if it points into the app you are uninstalling. Do not remove an unrelated binary or a Homebrew-managed link. A missing link is normal for some installations.

If Homebrew is installed, inspect packages and managed services
brew list --formula
brew list --cask
brew services list

For the ollama formula, use brew services stop ollama only if Homebrew manages that service, then brew uninstall --formula ollama. For a cask installation, use brew uninstall --cask CASK_NAME, replacing CASK_NAME with the installed token. The app cask is currently ollama-app and was previously named ollama; verify your listing instead of guessing. Stop any manually launched server through its original session. Do not apply both uninstall branches automatically.

Decide separately about remaining user data

Uninstalling the app or package does not imply that all models or settings have been removed. Avoid Homebrew’s broad --zap option when you want to keep data. After backing up, review ~/.ollama, any custom model directory, and Ollama-specific items such as ~/Library/Application Support/Ollama in Finder. Move only confirmed unwanted items to Trash; keys, settings, and history are not model cache files. Use the official macOS uninstall list as a reference, not a bulk deletion script.

06 / Check the result

Verify space on the same disk, then review other tools

Repeat the size and available-space checks on the same volume. If you used Finder’s Trash, space is generally not reclaimed until those items are emptied from Trash; review them first. Snapshots, ongoing writes, and shared layers can affect the difference. After uninstalling, type -a ollama may reveal another installation that needs its own review.

AgentClean does not currently support Ollama model management or uninstalling Ollama. For disk usage from other AI tools, start with a general investigation and check the supported-tools list before using AgentClean.

Official references

For other supported tools

Review cleanup coverage before downloading

AgentClean does not currently support Ollama. Use Ollama’s own commands and the manual uninstall steps above for its models and application.

For separately supported tools, AgentClean offers free scanning and review. Cleanup requires an active subscription. Check each tool’s coverage, review selected items, and back up important data before confirming.

View supported tools · Check coverage for other tools; this does not add Ollama support.

Frequently asked questions

A few more things to check

Where are Ollama models stored on a Mac?

The default location is ~/.ollama/models. OLLAMA_MODELS can override it. Check the environment and startup configuration of the running server; the Terminal shell and a macOS GUI app may use different settings.

Does uninstalling Ollama delete its models?

Removing Ollama.app or uninstalling its Homebrew package does not by itself guarantee that model files and user data are gone. Review the default or custom model directory separately. The parent ~/.ollama directory can also contain keys, settings, logs, and history.

Why does ollama rm free less space than the model size?

Models and tags may share layers, and layers still referenced by another model can remain. The list is not a sum of unique disk allocations. Compare the actual model directory and free space on its volume before and after removal.

Can AgentClean remove Ollama models or uninstall Ollama?

No. AgentClean does not currently support Ollama. This guide describes manual Ollama operations. Use the supported-tools list to check coverage for other AI tools.