clear_download_cache

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

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 should be removed from the cache if present.