Batch usuń wszystkie foldery i pliki

for /F "delims=" %%i in ('dir /b') do (rmdir "%%i" /s/q || del "%%i" /s/q)
Cheerful Chipmunk