def METHOD_NAME(path: str | Path):
    """Delete all generated files in a project."""
    path = Path(path)
    cacheDir = path / "cache"
    if cacheDir.is_dir():
        shutil.rmtree(cacheDir)
    metaDir = path / "meta"
    if metaDir.is_dir():
        shutil.rmtree(metaDir)
    bakFile = path / "nwProject.bak"
    if bakFile.is_file():
        bakFile.unlink()
    tocFile = path / "ToC.txt"
    if tocFile.is_file():
        tocFile.unlink()
    return