Removes cached API responses stored in the default or specified location.
Usage
trafa_clear_cache(entity = NULL, cache_location = trafa_cache_dir())Arguments
- entity
Character entity to clear (e.g.
"products","structure"), orNULL(default) to clear all rTrafa cache files.- cache_location
Directory to clear. Defaults to
trafa_cache_dir().
Examples
# \donttest{
if (trafa_available()) {
trafa_clear_cache()
trafa_clear_cache(entity = "products")
}# }
#> Removed 4 cached file(s).
#> No rTrafa cache files found.