Удаляем пустые директории

find [path] -depth -type d -empty -exec rmdir {} \;