clear_psi_cache

clear_psi_cache#

clear_psi_cache(dry_run=True, prompt=True)#

Delete cached data files downloaded by the fetch_* helpers.

Removes the pooch cache directories used by FETCHER — the default OS cache and the PSI_DATA_CACHE override when set. Directories that do not exist are skipped.

Parameters:
dry_runbool, optional

If True, only report which directories would be removed without deleting anything. Default is True.

promptbool, optional

If True, ask for interactive confirmation before removing each directory. Ignored when dry_run is True. Default is True.

See also

pooch.os_cache

Resolves the platform-specific cache directory.

Examples

>>> from psi_data import clear_psi_cache
>>> clear_psi_cache(dry_run=True)
[dry-run] Would remove cache directory: ...