delete_model: Delete an Ollama model to free up disk space

View source: R/setup.R

delete_modelR Documentation

Delete an Ollama model to free up disk space

Description

Wrapper around Ollama's DELETE /api/delete endpoint. Removes the model's blobs from the Ollama data directory. The operation is irreversible from the API side but the model can always be pulled back later with pull_model().

Usage

delete_model(
  model,
  ollama_url = getOption("screenllm.ollama_url"),
  verbose = getOption("screenllm.verbose", TRUE)
)

Arguments

model

Model tag (e.g. "mistral:7b").

ollama_url

Base URL of the Ollama server.

verbose

Show progress messages.

Value

Invisible TRUE on success, FALSE if the API returned a non-2xx status.


screenllm documentation built on Sept. 24, 2026, 5:11 p.m.