Quickly Clear the Google Chrome Cache Using Script

Here is a VBScript to automatically clear the cache in Google Chrome. This script has been tested with Google Chrome (Beta) Official Build 1798, under Windows XP and Windows Vista systems.

IMPORTANT: Running this script clears the bookmarks in Google Chrome. This is because the bookmarks are stored in the same file where History is stored. Hope this changes in the final version of Google Chrome.

Download delchromecache.zip and save to Desktop. Unzip the compressed file and extract delchromecache.vbs to a folder (e.g. D:\Scripts). Double-click delchromecache.vbs to clear the cache in Google Chrome. If Google Chrome browser window is open, the script fails to clear the cache and displays a message box.

Note that this script does not clear stored passwords and Cookies by default.

Customizations

1. To run the script in silent mode (no message windows), open delchromecache.vbs using Notepad and change the code in line #9 from:

intShowMessageBox = 1

to

intShowMessageBox = 0

2. To clear stored passwords and Cookies, change the code in line #8 to:

intClearPasswords = 1

More Information

Google Chrome cache (for the default profile) is stored in the following folder:

(Windows XP)

%USERPROFILE%\Local Settings\Application Data\Google\Chrome\User Data\Default

(Windows Vista)

%LOCALAPPDATA%\Google\Chrome\User Data\Default


Copyright © 2008 Ramesh Srinivasan. All rights reserved.

RELATED POSTS


Add to Google

3 Responses to “Quickly Clear the Google Chrome Cache Using Script”

  1. 3
    Chrome Lover Says:

    Nice little script, worked perfect. thanks for sticking it on here.

  2. 2
    film fan Says:

    i keep learning about more and more little advantages and features with Chrome, with privacy, for example; now if only they would take care of it’s cookie management glitches…

  3. 1
    Ige Says:

    Isn’t it better to use incognito mode? Or just Clear the Browsing data using the “Customize Chrome” button?

Leave a Reply