Delete empty zero-sized files

If faced with a large amount of arbitrarily named files that are empty (zero bytes) and it is desired to delete them, this can be easily done with GNU Findutils. Windows users can do this via Windows Subsystem for Linux.

Verify the file list to be deleted:

find ~/foo -type f -empty | sort

where ~/foo is the directory in which to delete the files and sort is used because in general the files are listed in random order. If satisfied, actually delete the empty files with:

find ~/foo -type f -empty -delete

GNU Findutils manual