What is .DS_Store File on Mac: How and Why you should delete it

How-To Macintosh

In our previous articles we described simple ways to boost Mac speed by clearing memory or sometimes by clearing the unwanted junk. But there is one more method of doing this, in which you simply need to clean a single folder.

This folder is known as DS_Store. The files within, are not only generated on your Mac they can also be found in archives you have received from other users. In this article we will understand that what exactly is DS_Store alongside how and why you should delete it.

What is DS_Store file:

In simple words DS Stands for Desktop services. This file is created automatically by Finder on Mac and stores information about how a folder will be opened such as its icons positions, Window size and shape. These files are in a folder on your Mac and do not cause any harm as they are created by the finder.

Why DS_Store files should be deleted:

So now it is clear that DS_Store does not harm your computer but still, it’s something not really required. Here are some of the reasons you should delete DS_Store folder from your Mac.

  1. You want to reset your display preferences.
  2. In case Finder is behaving weird when opening a folder. It happens because DS_Store file got corrupted. There are some simple signs by which you can know that DS_Store has gone bad on your Mac if you open a folder and gets closed within a second or so.
  3. When you are transferring files from Mac to a computer having other operating system such as Linux or Windows. System hides DS_Store files and they can create a problem there because they are meant for Mac OS.
See Also:-
How to Clear Browser Cookies on MacThe first step to stay protected from prying eyes is to clear browser cookies from your Mac. to clear cookies...

How you can Delete DS_Store file

Before you proceed to remove DS_Store you should know that it is not going to harm your Mac. But you should only delete it in the case you face issues because of this.

One more thing you need to know before proceeding further that as soon as you delete DS_Store file your system will automatically create a new one and this is how it fixes issues related to it. So practically you will not be able to delete DS_Store ever. On Mac it is just you replace the old one which is creating an issue or lowering down system performance.

How to Delete a DS_Store file

If you want to delete DS_Store file, then you should be careful that you have navigated to the correct folder because deleting any other system file may mess up with the operating system. So, let us begin the procedure of deleting DS_Store.

  1. Open terminal by going to Applications>Utilities
  2. Now you need to locate the folder or the directory for which you want to delete the DS_Store.
  3. Type cd in the terminal window followed by the path of folder for which you want to delete DS_Store and hit enter.
  4. Now type -name‘.DS_Store’ – type f -delete and hit enter.
  5. DS Store file in the chosen folder will now be deleted.

This is how you will be able to get rid of corrupted DS_Store file and your system will create a new one for you. But you need to dive deep to search for the reason for DS_Store file got corrupted. In most of the cases Junk on your system is the root cause of this. So here is how you can clean junk from your Mac using Tune up My Mac from Systweak.

See Also:-
Easy Fixes to Resolve “Scratch disk is Full”...If you’re a regular Adobe Photoshop or Adobe Premiere Pro user then we’re sure you’ve certainly faced “Scratch Disk” issues...

Cleaning Junk from your Mac

1. To clean junk You can download TuneupMyMac

System cleaner tuneupmyMac

2. Once you are done with download and installation you can go to system cleaner tab and logs cleaner to clean Junk from your Mac.

3. You can proceed for other options given in the app for advanced level tune up.

4. You can use app Optimizer and duplicate cleaner for Advanced optimization of your Mac.

This is how you can remove DS_Store from Mac so that it can be replaced by the new one with no bugs. It is strongly recommended to use a junk cleaner to avoid such issues in future.

Is this page helpful?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.