recursively delete empty directory ubuntu code example Example: delete all empty files and folders in terminal find /home/savona/ -type f -empty -exec rm {} \;