Last active
September 9, 2021 15:59
-
-
Save r3vit/aa3be1ab7f25f9dd38bb3d58cb96026e to your computer and use it in GitHub Desktop.
Easy clean Safari History.db
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
# Steps: | |
# 1. Close Safari. | |
# 2. Open the Safari History.db with sqlite3. | |
cd cd ~/Library/Safari | |
sqlite3 History.db | |
# 2. Remove the url that I have visited less than 5 times (there is no timestamp, so I cannot delete the "older than") | |
# My goal is to remove the ones that I usually don't use and are freezing/lagging Safari. | |
sqlite> DELETE FROM "history_items" WHERE visit_count <5; | |
# 3. Open safari. Now it's not freezing/lagging anymore. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment