Need to delete tons of empty folders?
If you have lots and lots of websites, you almost undoubtedly at SOME point or another have found yourself staring at hundreds, perhaps THOUSANDS, of empty folders because of some script or another that you ran. How do you get rid of them all without going insane in the process???
I was just faced with this dilemma, and of course a little web searching turned up the solution!
This is a shell (SSH) command, so you must have shell access in order to execute it. The command is:
find -depth -type d -empty -exec rmdir {} \;