# Remove the DSS temporary files that a test session left in %TLS_LST_PATH%. # Each dssqld run can leave a 0-byte dss__.tmp there, and loading a class leaves its source # text in one (verified on R1.05, 2026-10-08). Only files written since -Since are touched: 0-byte # files, and non-empty files that contain sample text (CIENG / CI-Eng-Sample). Files in use are skipped. # Usage: powershell -NoProfile -ExecutionPolicy Bypass -File clean_dss_tmp.ps1 -Since "2026-10-08T07:00:00" param([Parameter(Mandatory = $true)][datetime]$Since) $lst = $env:TLS_LST_PATH $f = Get-ChildItem -Path $lst -Filter 'dss_*.tmp' | Where-Object { $_.LastWriteTime -ge $Since } $ok = 0; $skip = 0 foreach ($i in $f) { $mine = ($i.Length -eq 0) -or (Select-String -LiteralPath $i.FullName -Pattern 'CIENG|CI-Eng-Sample' -Quiet) if (-not $mine) { $skip++; continue } try { Remove-Item -LiteralPath $i.FullName -ErrorAction Stop; $ok++ } catch { $skip++ } } "deleted $ok, left $skip (other content or in use)"