The accepted solution to the question Recursively delete empty directories in Windows
for /f "delims=" %d in ('dir /s /b /ad ^| sort /r') do rd "%d"
doesn't work due to the miss-interpretation of the tag '/R' ( returned error message : sort: cannot read: /R: No such file or directory )
Anyone can explain why ?