Skip to main content
DELETE

Body Parameters

string
required
Name of the model to delete (e.g., “llama2”, “mistral:7b”)
string
Optional Ollama server URL (defaults to http://localhost:11434)

Response

boolean
Indicates if the model was deleted successfully
string
Success or error message

Notes

This action is irreversible. Once deleted, you’ll need to pull the model again to use it.
  • Deleting a model frees up disk space
  • The model name must match exactly (including tag)
  • You can delete specific variants by including the tag (e.g., “llama2:7b”)
  • To delete all variants, you must delete each one individually