To find and delete empty files in Linux, find command can be used as below,
find . -type f -size 0 -delete
To find and delete empty directories use,
find . -type d -empty -delete
NOTE:
Take care to use delete only at the end, using it in beginning after path will make
findfirst delete all files in path before matching other arguments.
Also, -delete implies -depth, which means it processes directory contents before directory itself.