find . -name ".DS_Store" -print0 | xargs -0 rm -rffind . -name "._" -print0 | xargs -0 rm -rf

via linux - Bash: Recursively remove files - Stack Overflow.