% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spectra-fetch.R
\name{clear_ossl_cache}
\alias{clear_ossl_cache}
\title{Clear the soilKey OSSL cache}
\usage{
clear_ossl_cache(region = NULL, cache_dir = NULL, verbose = TRUE)
}
\arguments{
\item{region}{Optional character vector of regions to clear; the
default \code{NULL} clears every cached file under
`tools::R_user_dir("soilKey", "cache")`.}

\item{cache_dir}{Cache directory (defaults to the soilKey
user-cache dir).}

\item{verbose}{If \code{TRUE}, prints which files were removed.}
}
\value{
Invisibly, the character vector of files that were
        removed.
}
\description{
Removes the per-region cache files written by
\code{\link{download_ossl_subset}}. Useful when a stale cache is
suspected or when disk space is tight.
}
