clear_download_cache

astropy.utils.data.clear_download_cache(hashorurl=None) [edit on github][source]

Clears the data file cache by deleting the local file(s).

Parameters :

hashorurl : str or None

If None, the whole cache is cleared. Otherwise, either specifies a hash for the cached file that is supposed to be deleted, or a URL that has previously been downloaded to the cache.

Raises :

OSEerror :

If the requested filename is not present in the data directory.

Page Contents