Get rid of OS X ‘Quarantine Events’

So it seems OS X keeps track of all your downloads (even if you are using the Incognito/Private Browsing mode of your browser).

It stores the information in the following files:

  • ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV2 on Lion
  • ~/Library/Preferences/com.apple.LaunchServices.QuarantineEvents on Snow Leopard

They are SQLite databases and can be manipulated with the right tools.

So to delete all the contents you need to open the file for your version of OS X (Lion in my case).

sqlite ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV2

In the SQLite console delete all entries in the one table it contains.

delete from LSQuarantineEvent where 1=1;

This statement works in either file, but if you have Lion you might as well get rid of the old file.

rm ~/Library/Preferences/com.apple.LaunchServices.QuarantineEvents

Annoying Recent Items in the OS X Dock

OS X Lion has this annoying behavior that it will list an apps recently opened files when you open its dock menu. The ugly thing is you can’t turn this of globally and not all apps have their own options to turn this of or clear the list.

Well I have found a (ugly) way to do this, but it works:

rm ~/Library/Preferences/*.LSSharedFileList.plist

You will have to manually kill dock in the activity monitor for the changes to be applied.

But this does not mean that apps won’t produce these lists again. 🙁

You will have to manually deactivate recent files (e.g. for VLC):

defaults write org.videolan.vlc NSRecentDocumentsLimit 0
defaults delete org.videolan.vlc.LSSharedFileList RecentDocuments
defaults write org.videolan.vlc.LSSharedFileList RecentDocuments -dict-add MaxAmount 0

You will have to repeat this for any other application you don’t want to track recent files. 🙁