@echo off
setlocal
cd /d "%~dp0"

echo ==== clear queued jobs in jobs dir ====
echo files to delete:
dir /b "jobs\job_*.json" 2>nul
dir /b "jobs\job_*.running" 2>nul
dir /b "jobs\job_*.done" 2>nul
dir /b "jobs\job_*.prog" 2>nul
dir /b "jobs\job_*.tok" 2>nul

del /Q "jobs\job_*.json" 2>nul
del /Q "jobs\job_*.running" 2>nul
del /Q "jobs\job_*.done" 2>nul
del /Q "jobs\job_*.prog" 2>nul
del /Q "jobs\job_*.tok" 2>nul

echo.
echo ==== done. remaining in jobs dir: ====
dir /b "jobs" 2>nul
echo.
echo Note: output dir is NOT cleared. Re-request same code will hit cached files.
endlocal
