Delete Empty Directories using bash / command line; Find empty directory
To remove empty directories, use the following:
To simply find empty directories:
Code
find -type d -empty -delete
To simply find empty directories:
Code
find -type d -empty