$files = @( "D:\work\python\chajian\xiaohongshufabu\fix_encoding.js", "D:\work\python\chajian\xiaohongshufabu\fix_styles.js", "D:\work\python\chajian\xiaohongshufabu\fix_phash.js", "D:\work\python\chajian\xiaohongshufabu\fix_batch.js", "D:\work\python\chajian\xiaohongshufabu\del_db.ps1", "D:\work\python\chajian\xiaohongshufabu\del_db2.ps1", "D:\work\python\chajian\xiaohongshufabu\rename_db.js" ) foreach ($f in $files) { Remove-Item $f -Force -ErrorAction SilentlyContinue } Write-Host "Temp files cleaned up"