Re: Clear all the cache ...

Matt Nordhoff <[email protected]> Thu, 15 Dec 2005 09:28:11 -0500
Newsgroups gmane.comp.mozilla.devel.windows
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
On 12/13/05 23:22, Yue Cao (Worksoft) wrote:
> 
> I see, and my target is to clear all of these in a NO-GUI way, which
> means use the program interface or a shell command. 
> 
> Maybe I can simulate the mouse/keyboard message to "click" the menu and
> buttons as described, but I don't want to use that method by now.
> 
> Thanks,
> Yue
> 
> 
> 
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of gwtc
> Sent: Wednesday, December 14, 2005 12:06 PM
> To: [email protected]
> Subject: Re: Clear all the cache ...
> 
> Yue Cao (Worksoft) wrote:
> 
>> Hi all,
>>
>>          Is there any command line or program way to clear all the 
>> browser cache? Such as cookie, history, temp file, etc...
>>
>>  
>>
>> Thanks,
>>
>> Yue
> 
> First of all, cookies, history, temp files, etc are not stored within 
> the cache.  They are each located separately.
> 
> If you're using 1.5, then click on Tools, Clear Private Data, and you 
> can clear them all at once.
> 
> If you're using 1.0.7, then its Tools, Options, Privacy, and select 
> each one and clear them one at a time.

What OS?

On *nix, you could use this:

cd ~/.mozilla/firefox/*.default
rm -r Cache
rm cookies.txt
rm history.dat

That would remove the cache, cookies and history. It would have to be 
done with Firefox closed. That could be quite easily adapted to work on 
other OSes, see <URL:http://kb.mozillazine.org/Profile_Folder> for where 
your profile is located (that's the directory you cd to, the rm commands 
will work fine unchanged, unless you moved your disk cache).
-- 
Happy birthday to my Mom. :-)
(Her birthday was December 3rd, but it only happens once a year, so I 
can leave this here a few days, right?)