# Use an empty temporary cache directory so nothing real is deleted
old <- options(citezot.cache_dir = tempfile("citezot-cache"))
cz_clear_cache()
options(old)Delete citezot’s cached library data
cz_clear_cache
Description
Removes cache files created by cz_fetch_items() when caching is enabled. Only citezot’s own cache files are removed; nothing in Zotero is touched.
Usage
cz_clear_cache(auth = NULL)Arguments
| Arguments | Description |
|---|---|
| auth | Credentials from cz_auth() to clear just that library’s cache, or NULL (default) to clear every cached library. |
Value
Invisibly, the number of files removed.