Deletes raw .ivt inputs and/or parsed data Parquets from the cache. The
target files can be given three ways (combinable):
Arguments
- x
A character vector of catalogue numbers / cache keys, or a data frame from
list_ivt_cache()(itspathcolumn is used), orNULL(all listed files, subject tokind/language).- kind
Restrict to
"ivt"and/or"parquet"files.NULL= both.- language
Restrict Parquets to these languages (
"en"/"fr");.ivtfiles (languageNA) are excluded whenlanguageis set.NULL= all.- sidecars
Also delete a
<key>_members.parquetsidecar once no Parquet references it (defaultTRUE).- dry_run
If
TRUE, report what would be removed without deleting.
Value
Invisibly, a tibble of the removed (or, for dry_run, matched) files
with kind ("ivt"/"parquet"/"sidecar"), path and bytes.
Details
catalogue numbers / cache keys via
x(a character vector), matched as inlist_ivt_cache()(normalised key or catalogue number, exact or prefix);format / language filters via
kind("ivt"/"parquet") andlanguage("en"/"fr");a filtered listing via
x(a data frame fromlist_ivt_cache(), e.g.list_ivt_cache() |> dplyr::filter(census_year == 2016)): exactly itspathfiles are removed.
With no x/kind/language, every listed cache file is targeted (the
member sidecars and the catalogue cache are never touched here). When a
Parquet is removed and no remaining Parquet references its shared
<key>_members.parquet sidecar, the orphaned sidecar is removed too
(sidecars = TRUE); emptied per-table .ivt folders are cleaned up.
