Open Web UI icon

Open Web UI

OpenWebUI

Actions304

Ollama → delete_model_ollama_api_delete_delete

AI-generated

Summary

Delete a model from the Ollama API by sending a DELETE request to the /ollama/api/delete endpoint specifying the model's name in the request body and optionally controlling the URL index via query parameters.

Inputs

  • name (required) — The name of the model to be deleted (string).
  • url_idx — Optional query parameter to specify the URL index (string).
  • Skip Authentication — Boolean flag to skip authentication; if false or omitted, uses Open WebUI Auth credentials.

Output shape

The operation returns the response from the DELETE API call, typically confirmation of deletion. The precise structure depends on the Ollama API but is not further specified here.

The request must include a JSON body containing the 'name' of the model to delete. The operation uses a fixed base URL (http://open-webui:8080) defined by credentials unless Skip Authentication is true. Query parameters can include 'url_idx' to influence the request URL. The returned data is directly from the API response without additional transformation.

Examples

Example 1: Delete the model named 'example-model' without skipping authentication and no url_idx.

Send a DELETE method request to /ollama/api/delete with request body {"name":"example-model"} and Open WebUI Auth credentials.

Example 2: Delete the model named 'test-model' with url_idx set to '1' and skipping authentication.

Set Skip Authentication to true, specify query parameter url_idx='1', and send a DELETE request with body {"name":"test-model"} to /ollama/api/delete.

Links

Discussion