Delete cache files that are no longer in use

delete_old_file(
  target_dir = "in",
  gls,
  cache_ids = NULL,
  verbose = FALSE,
  delete = NULL
)

Arguments

target_dir

character: directory where the cache files are stored. If could be a patch, like gls$OUT_SVY_DIR_PC from

gls

list: List of globals.

cache_ids

character:vector with Cache_ids. default from db_create_pipeline_inventory() pipload::add_gls_to_env() or it could be one of the two shortcuts, "in" or "out". The former refers to gls$CACHE_SVY_DIR_PC. the latter refers to gls$OUT_SVY_DIR_PC.

verbose

logical: whether to display messages

delete

logical or NULL. If Null, menu with choices will be displayed (default). If false, no file will be deleleted. If TRUE, all old files not available in cache_id will be deleted

Value