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: Zectbumo on Feb 28, '09 06:46:40PM
> If anyone discovers how to delete an individual .ico from the cache, let us know.
I found out how to do it but I think this isn't a problem anymore so I won't bother posting the steps that are involved. Maybe this question should be removed.
> I'm not sure if the new structure makes it any easier to remove an individual favicon or not...
I'm not sure what the procedure for the old structure was but I'm going to guess it didn't involve using SQL commands with JOIN statements so I'm going to say the new procedure is much more difficult. -alfred

[ Reply to This | # ]
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 | # ]