Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Remove Safari's cached favicon.ico files' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Remove Safari's cached favicon.ico files
Authored by: kbs on Sep 08, '11 03:34:56PM

I've recently had this problem, and here are the steps I took. (YMMV, as always; and I assume you're comfortable working in a shell.)

The Safari version I use: Version 5.1 (6534.50)

The icons are now completely embedded in a sqlite database, at $HOME/Library/Safari/WebpageIcons.db

Exit Safari.

With a URL to the favicon.ico to be removed, here's what worked for me.

$ sqlite3 $HOME/Library/Safari/WebpageIcons.db
sqlite3> select iconID from IconInfo where url='http://hints.macworld.com/favicon.ico';
nnnn

You should get a number nnnn. Use that number in the following.

sqlite3> delete from IconData where iconID=nnnn;
sqlite3> delete from PageURL where iconID = nnnn;
sqlite3> delete from IconInfo where iconID=nnnn;
sqlite3> .quit

and, restart Safari -- visit the page of interest, etc.



[ Reply to This | # ]
Remove Safari's cached favicon.ico files
Authored by: xhinter on Nov 19, '13 07:42:29AM

How can I replace a favicon for either one URL or a set of URLs in WebpageIcons.db?



[ Reply to This | # ]