Is there a way to tell finder not to save any metadata about folders?

I would love to get Finder to forget how it displayed any folder the last time I viewed it. So when expanding a folder it does not expand the whole subtree I opened last time.

1 Answer 1


Have a look at Death to DS_Store.

The source code is available on GitHub and the binary is available as well.

  • Does it stop the finder from remembering the expand/collapse status of folders? Commented May 30, 2017 at 18:01
  • Yes, as this state is saved in the .DS_Store file as well.
    – oa-
    Commented May 30, 2017 at 18:06
  • Unfortunately this does not do the trick. The expanded/collapsed state is not persisted throughout system reboots, but during a session the folders stay expanded/collapsed. So this state is probably saved somewhere else too, not just the .DS_Store files. Commented May 30, 2017 at 18:41
  • Please let us know what version of OS X/macOS you are using.
    – oa-
    Commented May 30, 2017 at 18:44
  • Using OSX 10.11. I have diabled SIP. DeathToDSStore is installed succesful and has a launch agent, so yes, even after rebooting no .DS_Store files reappeared, and i dont have any .DS_Store files left on my device which i removed with: sudo find / -name ".DS_Store" -depth -exec rm {} \; Commented May 30, 2017 at 18:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .