linux find empty folders and delete code example
Example 1: remove empty folders linux
find . -type d -empty -print -delete
Example 2: how to find empty folders linux
find . -type d -empty
find . -type d -empty -print -delete
find . -type d -empty