MacOS – How to view and delete Mac download history

deletingmacmacos

Yesterday I was told that every computer keeps track of everything you have ever downloaded.

My computer is a 2014 iMac that is running macOS v10.13 (High Sierra), so I went to apple.com and tried to find the info I need, but all of the information I could find was about seeing your purchase history for the App Store and iTunes store, or about re-downloading content from Apple or about featured downloads.

Does my iMac in fact have a record of everything I've downloaded? If it does, how can I view it? And can I delete that record if I want to?

Best Answer

Yes, macOS does keep a history of everything users download, although users can prevent items from being recorded in that history if they're using their browser's private browsing function or other software designed to ensure your privacy (e.g. the Tor browser, etc).

So, downloading anything in a typical browser (even right-clicking on an image and saving it) is recorded. However, if you're using a private (or incognito) window (e.g. via shiftcommandN in Safari, Opera or Chrome, or shiftcommandP in Firefox) any items being downloaded will not be recorded in the history.

You can use a terminal command to view what is in your historical record. Note: it’s going to be one extremely long list and you’ll probably find viewing it isn’t very useful. Regardless, you can do this as follows:

  1. Launch Terminal app (usually found in your Utilities folder within the Applications folder)
  2. Once it opens, copy and paste the following command:

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

  1. Press return

Terminal will now spit out a long list of addresses pertaining to your downloaded files.

To delete this history, you need to enter (or copy and paste) the following command in Terminal and press return:

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

To confirm that you've deleted your history, just run the first command again.