def _cleanup(): artifacts.get_artifacts_cache()._artifacts_by_id = {} if os.path.isdir("wandb"): shutil.rmtree("wandb") if os.path.isdir("artifacts"): shutil.rmtree("artifacts") if os.path.isdir("upstream"): shutil.rmtree("upstream")
def delete_cache(): safe_remove_dir("./artifacts") safe_remove_dir("~/.cache/wandb") safe_remove_dir(artifacts.get_artifacts_cache()._cache_dir)