The find command has an -empty option which detects empty directories of files (0bytes). This is useful if you need to locate or remove empty directories or files from a directory structure:
find /path/ -type d -empty -exec rmdir {} \;
find /path/ -type f -empty
find /path/ -type f -empty