What is .ds_store file on a Mac and how to delete it

If you just noticed a DS_store file on your Mac, you are probably wondering what is it. Here, we are going to explain that, and we are going to show you how to get rid of such files.

See also: How To Change Apple ID On Mac Or Windows PC

DS_store files are created automatically on your macOS. These files can be found in your system folders and their purpose is to help your Mac maintain the folder’s display settings. DS_store files are created by Finder, and they contain all of the information about the folder – window’s position the last time it was opened, the size and shape of the window, icon positions, and more.

Now, you may think that these files could take a lot of space on your Mac, but it’s the opposite. They barely take any space. In addition, these files can’t cause any harm to your Mac. The only time these files can cause unexpected issues is when you are transferring the files from your Mac to some other system, such as Windows or Linux.

How to delete the DS_Store file

You can manually delete the files using the Terminal. Here is how:

  • Navigate to Applications > Utilities > Terminal
  • Find the folder where the DS_Store you want to remove is
  • Now you need to type cd into the Terminal and add the folder path right after that so it may look like this cd /Users/username/foldername
  • Press Enter
  • Type the following command find . -name ‘.DS_Store’ -type f -delete
  • Press Enter

The DS_Store files in the folder are now gone.

If this seems like a lot of work for you and you don’t want to do it manually, there are tools you can use such as iMyMac or CleanMyMac X.

With tools like the ones we mentioned, you can clean these files, junk files, duplicate files, and more.