REMOVE ALL FILES AND FOLDERS THAT ARE HIDDEN


find . -type d -name '.[^.]*' -prune -exec echo rm -rf {} +

Once you're happy, remove echo from the option arguments to -exec to remove the listed directories.

find . -type d -name '.[^.]*' -prune -exec rm -rf {} +
