In PowerShell do this:
cd MyFolder Get-ChildItem -recurse -filter .DS_STORE | Remove-Item -WhatIf
When you specify -WhatIf
, then PowerShell won't make any changes. It will instead tell you what it would have done. When you are happy with what it will do, then you can remove the -WhatIf
. (It always pays to be careful when doing a recursive delete. You don't want to delete the wrong things.)