How to remove all (dot) files in linux

This ommand will remove all the dot files without removing top level directory. This command tested on Centos 5 and usually applicable to all Linux distros.

rm -rf .[^.]* && rm -rf ..?*