Macos – How to remove DS_Store forever for good (not hide them but remove them)

.ds-storefindermacos

How do I remove and prevent from ever being created the DS_Store files on Mac OSX?

I found this article, http://krypted.com/mac-os-x/no-more-ds_store-files/, that describes preventing them from being created on network storage devices but says it doesn't work for local storage (IE my hard drive).

To be clear, I don't want to hide them, I want them not to be created.

Best Answer

  • The short answer is that you have to hack the Finder binary at runtime to prevent it from creating them. There is no official Apple-blessed way of doing this without directly hacking binaries.

    "There's an app for that" nowadays. See this blog and this code which is quite awesome if you ask me :)