How to delete all .DS_Store files on Mac OS X

DS_Store files are hidden system files that are present in almost every Mac OS X folder and contain

information and settings of the corresponding folder: display type, icon size, etc.

By default, ds_store files are invisible, but if you enable the display of hidden files, you will find them in each folder. In this case, they may interfere, and you will want to remove them.

Advertising

Advertising

Below we will tell you how to delete all files at once.DS_Store on Mac OS X. The method is to work with the command line and is intended for advanced users. Be careful and check each command, otherwise you can delete other files, and this will lead to problems.

How to delete all filesDS_Store onMac

  1. Run the Terminal program, which is located in the Utilities folder.
  2. Enter the following command:

sudo find / -name “.DS_Store” -depth -exec rm {} ;

  1. Enter the administrator password.
  2. Run the command. She will find all available .DS_Store files and delete them.

You may have noticed that there are similar “Thumbs.db” files on a Windows PC. They can be easily removed using the search.

If you delete all .DS_Store files and disable their creation, they will cease to be a problem forever. We hope that this instruction helped you.