clear_download_cache

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

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

Parameters
hashorurlstr 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.