Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to delete all Safari cookies from terminal on Mac OS 10.7.2.

I tried to delete ~/Library/Cookie/Cookies.binarycookies (this is the only file in ~/Library/Cookie), but it didn't help.

Please advise.

share|improve this question
up vote 5 down vote accepted

You need to stop the cookied process. It's a user-specific process that manages cookies, and recreates the cookies database whenever it's deleted.

killall cookied

When you launch Safari the next time, cookied will not be able to recreate the Cookies.binarycookies file from memory and will start with an empty cookies database. The file that will be created then will effectively be empty (<1kb).

share|improve this answer
Thanks a lot! It worked! – Misha Moroshko Jan 8 '12 at 22:45
@Daniel Beck - are there other things that use cookied besides Safari? – cwd Sep 15 '12 at 11:35
@cwd Probably anything using NSHTTPCookieStorage directly or indirectly. Just guessing here though. – Daniel Beck Sep 15 '12 at 12:06

You must log in to answer this question.

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