% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datasus_catalog.R
\name{datasus_cache_prune}
\alias{datasus_cache_prune}
\title{Prune the datasusr cache}
\usage{
datasus_cache_prune(
  cache_dir = NULL,
  max_size_bytes = NULL,
  older_than_days = NULL,
  verbose = TRUE
)
}
\arguments{
\item{cache_dir}{Optional cache directory.}

\item{max_size_bytes}{Maximum total cache size in bytes. When exceeded, the
least-recently-accessed files are removed until the cache fits.}

\item{older_than_days}{Age threshold in days. Files with a modification time
older than this are removed.}

\item{verbose}{Logical. Emit progress messages (default \code{TRUE}).}
}
\value{
A tibble with columns \code{path}, \code{removed}, and \code{reason}.
}
\description{
Selectively removes cached files based on age and/or total size. Older and
least-recently-accessed files are removed first.
}
