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