Find all files (-type f) with any name (*.*) and pipe the output to xargs to run the sed command to replace all whitespace (\s) with nothing (-e 's/\s//').
find -type f -name '*.*' | xargs sed -i -e 's/\s//'