bash - How can I delete my user data programmatically in Safari | OSX? -


i've found out how in firefox

sudo rm -rf ~/library/application\ support/firefox/ 

this command deletes history, bookmarks, cookies, , more.

i tried

sudo rm -rf ~/library/safari/ 

for safari still logged in ( cookies still there ) after running it.

i prefer not use gui.

all comments below answer has provided right answer. im collecting pieces , placing here others can benefit , have full answer if having same question.


this post supply answer.

safari caches cookies in memory, if delete files while it's still running , quit, they'll written disk.

you must have safari closed in order sure cookies deleted.

once safari closed can delete following folders:

# delete current user cookies /users/shortusername/library.   # or path same above. both %home% directory # of current user  ~/library should work.  # other folders remove well: ~/library/safari/localstorage/ ~/library/webkit/localstorage/ $tmpdir/com.applewebkit.webcontent+com.apple.safari 

Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -