Last active
March 9, 2024 13:34
-
-
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/)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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'