find and remove folders with find command code example Example: show directories before deleting them find unix find . -iname .DS_Store -delete -print