Clear cache programmatically

Is there a way to clear cache inside the python script?

Tried the following but I assume the api is available no more:

from streamlit import caching
caching.clear_cache()