in reply to UNIX command - remove 0 byte file

Insert appropriate directory path instead of $directory then cast the command.
perl -e '!-s&&unlink $_ for<$directory/*>'