paste&save to x.bat
1
for /f "tokens=*" %%G in ('dir /AD /B') do del /f/s/q "%%G" > nul && rd "%%G" /s /q
tested&working on network path.
src - http://stackoverflow.com/a/6208144/1320686
origin - http://www.pipiscrew.com/?p=7535 delete-all-folders-and-subfolders-with-dos-command-is-faster-than-windows