I have been searching for a while, but can\'t seem to get a succinct solution. I have a Mac with a folder that I want to clean of all hidden files/directories - anything hidden.
rm -rf `find . -type f -regex '.*/\.+.+'`
If you want to delete directories, change -type f for -type d.
-type f
-type d
If you want to delete files and directories remove -type f