# 清理脚本 $ErrorActionPreference = "Stop" $experimentDir = "tools/experiments/wiki-generation-compare/output" Write-Host "=== 清理实验环境 ===" -ForegroundColor Cyan if (Test-Path $experimentDir) { Write-Host "删除输出目录: $experimentDir" -ForegroundColor Yellow Remove-Item -Path $experimentDir -Recurse -Force Write-Host "✓ 清理完成" -ForegroundColor Green } else { Write-Host "输出目录不存在,无需清理" -ForegroundColor Yellow }