Is there a way to list all .DS_Store files for selective deletion?

I routinely run VirusBarrier X6 antivirus software. Every time I do, it gets hung up on a single .DS_Store file for days on end, and I have no way to ascertain where the file is located. I understand that .DS_Store files are hidden and in every folder, so I was wondering if there was a way to list all of them via Spotlight or a Terminal command line. Whenever VirusBarrier has been hung up on a system file in the past, it's been freakishly large. I figured if I could list and sort all of the .DS_Store files, it might help me to pinpoint the one responsible for the hang-up. I know about the Terminal command to show all hidden files, but I do not know how to view them all together in a sortable list by size.


I am also aware of the Terminal command that deletes all .DS_Store files on your computer, but I've read that it may lead to catastrophic results. I'm not looking to cripple my computer over a virus software hang-up.


Thank you.

Mac Pro (Early 2008), OS X Yosemite (10.10.2)

Posted on Mar 9, 2015 6:25 AM

Reply
4 replies

Mar 9, 2015 6:36 AM in response to chiba1976

I'm not looking to cripple my computer over a virus software hang-up.

The computer is already crippled. Remove the Intego product, which is worse than useless and worse than the imaginary "viruses" would be if they really existed, which they don't, by following the instructions on this page. If you have a different version, the procedure may be different.

Back up all data before making any changes.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Is there a way to list all .DS_Store files for selective deletion?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.