Remove all the files:
DEL /F/Q/S *.* > NUL
Then change directory to parent folder to remove the remaining empty folders structure:
RMDIR /Q/S <folder>
Complete file:
@ECHO OFF ECHO Delete Folder: %CD%? PAUSE SET FOLDER=%CD% CD / DEL /F/Q/S "%FOLDER%" > NUL RMDIR /Q/S "%FOLDER%" EXIT