Recursively Remove .DS_Store file.

.DS_Store (Desktop Services Store) is a hidden file created by Apple Inc.’s Mac OS X operating system to store custom attributes of a folder such as the position of icons or the choice of a background image

If you are upload to server, this file is irreverent, you can use the shell script below to remove .DS_Store in a certain folder.

find ./ -type f | grep .DS_Store | xargs rm

It apply also if you want to delete certain file in the folder, e.g: .svn etc.