delete empty folder excluding root one find ./folder/* -type d -empty -delete
find ./folder/* -type d -empty -delete