find . -name "*.bak" -type f -delete # try this first to see what will be deleted find . -name "*.bak" -type f