Skip to content

Instantly share code, notes, and snippets.

@hellais
Last active March 9, 2024 13:34
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hellais/4552537 to your computer and use it in GitHub Desktop.
Save hellais/4552537 to your computer and use it in GitHub Desktop.
Clear the logs of the all the files you downloaded in OSX (ref: www.tuaw.com/2012/02/14/mac-os-xs-quarantineevents-keeps-a-log-of-all-your-downloads/)
# To delete all the currently stored files
sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'delete from LSQuarantineEvent where LSQuarantineEventIdentifier like "%%";'
# To never store such information you can sym link it to dev null
ln -s /dev/null ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV2
@stoduk
Copy link

stoduk commented Dec 11, 2014

If you aren't doing the /dev/null part, you'll need to run "vacuum" command in sqlite3 afterwards to make the file reduce in size.

sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'vacuum'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment