Last Updated: September 09, 2019
·
828
· syxanash

OSX logs every downloaded file!

The news became quite viral recently so, Mac OS X keeps track of every single file you've downloaded since you started using your Mac. If you don't believe this, simply copy and paste into your command line the following command:

sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'select LSQuarantineDataURLString from LSQuarantineEvent'

cool right? *sad question*

and unfortunately the only way for now, that you have to delete this log, is by removing the LSQuarantineEvent directly using the command:

sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'delete from LSQuarantineEvent'

Now, in order to make it easier to avoid this, you can build your own bash script or write an alias inside your ~/.profile