Removing Zero-Byte Files (0b)

I recently saw a server glitch where an automated system created thousands of files with no content—0b. Once they were created, they became really hard to remove.

I solved it by running:

find /srv/www/ -size 0b

This let me know where all the funky files were. Then I tested on a deep folder… and then:

find /srv/www/ -size 0b -delete

removed them all, allowing the system to re-publish them correctly.