Skip to contents

Deletes installed model files, the server program, or everything in the local model directory, stopping any server that uses them first.

Usage

llm_local_uninstall(
  models = character(),
  runtime = FALSE,
  all = FALSE,
  dir = llm_local_dir()
)

Arguments

models

Names of the models to remove.

runtime

If TRUE, also remove the llama.cpp server program.

all

If TRUE, remove every model, the server program, and the logs, and the directory itself when nothing else is left in it. Only a directory holding LLMR's manifest is touched.

dir

The local model directory; see llm_local_dir().

Value

The names of the removed models, invisibly.

Examples

if (FALSE) { # \dontrun{
llm_local_uninstall("qwen3-0.6b")
llm_local_uninstall(all = TRUE)
} # }