Skip to contents

Only removes searchlight-managed entries in a directory bearing the marker created by acquisition. Other user files are retained. This is destructive.

Usage

sl_cache_clear(dir = sl_cache_dir())

Arguments

dir

Cache directory.

Value

Invisibly, paths removed.

Examples

d <- tempfile()
dir.create(d)
file.create(file.path(d, ".searchlight-cache"))
#> [1] TRUE
sl_cache_clear(d)
unlink(d, recursive = TRUE)