llama_hf_cache_clear: Clear the model cache

View source: R/hf.R

llama_hf_cache_clearR Documentation

Clear the model cache

Description

Removes cached model files. Can clear the entire cache or only files from a specific repository.

Usage

llama_hf_cache_clear(repo_id = NULL, confirm = TRUE, cache_dir = NULL)

Arguments

repo_id

Character or NULL. If specified, only remove cached files from this repository. If NULL, clear the entire cache.

confirm

Logical. If TRUE (default), ask for confirmation before deleting files in interactive sessions.

cache_dir

Character or NULL. Cache directory to clear. Defaults to llama_hf_cache_dir().

Value

Invisible NULL. Called for its side effect of deleting cached files.

Examples


llama_hf_cache_clear(confirm = FALSE)


llamaR documentation built on May 28, 2026, 1:06 a.m.