def METHOD_NAME(dist_path: Path):
    dist_loc = Path(os.getcwd(), dist_path)
    dirt = [d for d in dist_loc.rglob("__pycache__") if d.is_dir()]
    dirt += [d for d in dist_loc.rglob("*.dist-info") if d.is_dir()]
    for d in dirt:
        if d.exists():
            shutil.rmtree(d, ignore_errors=True)