Delete empty zero-size files

To list or delete arbitrarily named files that are empty (zero bytes), consider findutils “find” installed by default on most Linux and BSD systems or on Windows via Microsoft coreutils. Homebrew findutils (e.g. on macOS) makes the command “gfind” in place of “find”.

Verify the file list to be deleted:

find . -type f -empty | sort

where . 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 . -type f -empty -delete