Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Remove Safari history files on logout via shell script' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Remove Safari history files on logout via shell script
Authored by: palahala on Sep 16, '09 03:07:41AM
Somewhat selective of ONLY content of the SharedObject database. There are other Flash settings that shouldn't be nuked.

When you don't clean up $HOME/Library/Preferences/Macromedia/Flash Player/macromedia.com/support/flashplayer then the list of sites one has visited (like visible when using the Settings Manager on Adobe's website) will not be cleared. See also How to automatically remove Flash history/privacy trail? Or stop Flash from storing it? on Super User, especially in case you want to allow some specific sites to store data.

# Forget whatever this stuff is
/bin/rm -rf $useroot/Library/Caches/com.apple.Safari

These are (at least) the Top Sites web page previews, which used to be in a different location in the 4 beta.

# If only this worked...
#defaults write ~/Library/Preferences/com.apple.Safari PrivateBrowsingEnabled 1

Setting PrivateBrowsingEnabled won't keep add-ons from storing any history. I guess when trying to achieve that, using Fast User Switching and a guest account (which is cleared by your Mac upon exit) are much easier then. ;-)



[ Reply to This | # ]