Synopsis
Description
Therm command permanently deletes models from your local library, freeing up disk space. This removes:
- Model weights
- Configuration files
- Metadata
- All associated files
Arguments
Name(s) of the model(s) to remove. Multiple models can be specified separated by spaces.Examples:
ollama rm llama3.2ollama rm mistral:7b codellama:13bollama rm myusername/custom-model:v1
Options
Therm command has no flags or options.
Examples
Remove a Single Model
Delete one model:Remove Multiple Models
Delete several models at once:Remove Specific Tag
Remove a specific version:8b variant, leaving other tags like :latest or :13b intact.
Remove Custom Model
Delete a model you created:Before Removing
Check Model Details
Review model information before deleting:List All Models
See what’s available:Check Disk Space
See how much space you’ll free:Automatic Stop
If the model is currently running, it will be stopped automatically before removal:Disk Space Recovery
Check disk space before and after:Scripting Usage
Use in scripts and automation:Cleanup Patterns
Remove Old Versions
Keep only the latest version of each model:Remove Test Models
Clean up experimental models:Free Up Space
Remove largest models:Recovery
Once removed, models can be recovered by:Re-pulling from Registry
Re-creating from Modelfile
Re-creating a model requires the original Modelfile and any referenced files (adapters, weights, etc.).
Storage Location
Models are removed from:- Linux/macOS:
~/.ollama/models - Windows:
%USERPROFILE%\.ollama\models - Custom:
$OLLAMA_MODELS
Environment Variables
Ollama server address
Directory where models are stored (affects what gets deleted)
Exit Codes
0- Success, all models removed1- Error occurred (model not found, permission denied, etc.)
Troubleshooting
Model Not Found
Server Not Running
Permission Denied
Model Still Running
If you see a warning about a running model, it will be stopped automatically:Safety Tips
Check Before Deleting
Use
ollama list and ollama show to verify you’re removing the right modelKeep Modelfiles
Save Modelfiles for custom models so you can recreate them if needed
Document Custom Models
Keep notes about custom models, their purpose, and configuration
Consider Alternatives
If disk space isn’t critical, consider keeping models you might reuse
Comparison with Stop
| Command | Effect | Recoverable |
|---|---|---|
ollama stop | Unload from memory | Yes, immediately |
ollama rm | Delete from disk | Yes, by re-pulling/creating |
Related Commands
ollama list- See which models can be removedollama show- Check model details before removingollama ps- See if a model is running before removalollama pull- Re-download a removed modelollama create- Recreate a custom model