recursively delete empty directories in windows
Posted
by mohlsen
on Super User
See other posts from Super User
or by mohlsen
Published on 2009-09-11T13:38:58Z
Indexed on
2010/05/09
5:49 UTC
Read the original article
Hit count: 187
I have a directory on my Windows 7 machine that has hundreds if not thousands of sub-directories. Some of them have files, some do not. I want to delete all the empty directories.
Looking at the del and rmdir DOS command, it does not look like you can recursively do this without deleting all the files. Is there a way to do this from the command line? Or is there a tool that would do it for me?
© Super User or respective owner