-
Open the Terminal then type
sudo find
followed by a single space. -
Drag your starting folder from any Finder window to the Terminal window (or use a forward slash "/" to indicate the system root for the whole system. Takes too much time. Not recommended).
-
Type
-name
followed by a space and then the file name pattern you would like to search for.DS_Store
. -
Type
-delete
to have the command delete files. -
To refresh Finder windows finish the first command with
;
followed by a space, then typekillall Finder
.
When you are done, the command should look something like the following:
sudo find [folder path] -name .DS_Store -delete; killall Finder
Now hit Enter/Return, you will be prompted for your password. You won't see your password as you type, so type carefully and hit Enter/Return again and waint untill the process finished.