@echo off echo Clearing all Python caches... del /s /q *.pyc for /d /r . %%d in (__pycache__) do @if exist "%%d" rd /s /q "%%d" del /s /q app\__pycache__ del /s /q logs\*.log 2>nul echo Caches cleared. echo Please restart the server. pause