I'm running a batch script that clears files, in which I need to delete all empty folders. It is identical to the question posted here: https://unix.stackexchange.com/questions/24134/remove-empty-directory-trees-removing-as-many-directories-as-possible-but-no-fi
except I am using batch instead of bash (Windows 10).
I tried using rmdir but it would either remove dirs. and files or remove nothing.