Locate All Empty Files and Directories find . -empty will do just that for the current directory. To remove them use: find . -empty -delete The delete option will remove files and directories. If a directory contains just empty files, the files will be deleted and then the directory, which has suddenly become empty, will also be deleted. Note that: find . -size 0 will not detect empty directories as they have a non-zero size.