Skip to contents

Removes cached files for a specific identifier or the entire cache.

Usage

df_clear_cache(identifier = NULL, type = NULL, metawoRld_path)

Arguments

identifier

The original identifier (e.g., DOI) to clear cache for. If NULL (default), clears the entire DataFindR cache for the project. Use with caution!

type

Cache type(s) to clear: "assessment", "extraction", "metadata", or a vector like c("assessment", "extraction"). If NULL (default), clears all types for the given identifier(s).

metawoRld_path

Path to the metawoRld project containing the cache.

Value

Invisibly returns TRUE if deletion operations were attempted (doesn't guarantee success for every file if permissions fail).