W3cubDocs

/scikit-learn

clear_data_home

sklearn.datasets.clear_data_home(data_home=None)[source]

Delete all the content of the data home cache.

Parameters:
data_homestr or path-like, default=None

The path to scikit-learn data directory. If None, the default path is ~/scikit_learn_data.

Examples

>>> from sklearn.datasets import clear_data_home
>>> clear_data_home()  

© 2007–2025 The scikit-learn developers
Licensed under the 3-clause BSD License.
https://scikit-learn.org/1.6/modules/generated/sklearn.datasets.clear_data_home.html