empty directory linux code example
Example 1: remove empty folders linux
find . -type d -empty -print -delete
Example 2: linux remove folder and all his content
rm -rf /path/to/directory/*
find . -type d -empty -print -delete
rm -rf /path/to/directory/*