delete_model
Permanently remove a model from an Ollama provider. Irreversible; re-pull to restore. Refuses to remove the default or a loaded model unless force=true.
Instructions
Permanently delete a model from an ollama provider (DELETE /api/delete). Irreversible — the model must be re-pulled to restore. Refuses to delete the provider's default_model or a currently-loaded model unless force=true.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model": "<model>"
},
"name": "delete_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Allow deleting the default/loaded model | |
| model | Yes | Model id to delete, e.g. 'llama3.1:8b' | |
| provider | No |