Skip to content

Instantly share code, notes, and snippets.

@derralf
Created April 18, 2021 06:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save derralf/74a29394eabe057b72b786853d70a5a3 to your computer and use it in GitHub Desktop.
Save derralf/74a29394eabe057b72b786853d70a5a3 to your computer and use it in GitHub Desktop.

Mac OS X 'QuarantineEvents' – view, delete and compress the database

Viewing Mac Download History

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

Clear Mac Download History

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

Compress database - with vacuum

sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV2 'vacuum LSQuarantineEvent'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment