Skip to contents

Deletes the cached files of one pinned model. Other models and the rest of the cache are left untouched; a model that is not installed is not an error.

Usage

model_remove(cache_dir = default_cache_dir(), model = "all-MiniLM-L6-v2")

Arguments

cache_dir

Cache root returned by cache_dir().

model

Name of a pinned model listed by models().

Value

Invisibly, whether the model directory no longer exists.

Examples

cache <- file.path(tempdir(), "sbert-example-cache")
model_remove(cache)