how to remove empty directories 1

how to remove empty directories

find /dir -type d -empty -delete

Here is what the above code is Doing:
1. find all the empty directories in /dir
2. delete them

Similar Posts