find . -name "*.bak" -type f -delete # But use it with precaution. # Run first: find . -name "*.bak" -type f