Deletes files from the demo.istat.it cache directory. Filtering by
dataset code and/or maximum file age is supported. When both
code and max_age_days are NULL, all cached
files are removed.
Arguments
- code
Character string with the dataset code to clean (e.g.,
"D7B"). IfNULL(default), files for all datasets are considered.- cache_dir
Character string with the root cache directory. If
NULL(default), the value fromget_istat_config()$demo$cache_diris used.- max_age_days
Numeric maximum file age in days. Only files whose modification time is older than this threshold are removed. If
NULL(default), no age filtering is applied.