Delete Empty Directories using bash / command line; Find empty directory

To remove empty directories, use the following:

find -type d -empty -delete

To simply find empty directories:

find -type d -empty
Did this help you? Please let me know with a comment. Thank you
Posted .

Comments (RSS)

Leave a comment