import shutil, os CACHE_PATH = "/data/hf_dataset" if os.path.exists(CACHE_PATH): shutil.rmtree(CACHE_PATH) print("Cache cleared.") else: print("No cache found.")