find . -type d -empty # use this to find the empty files find . -type d -empty -delete #use this to delete all empty dirctories