Clear Chrome's cache via CLI

5,048

The easiest way to delete Google Chrome's cache is to delete the cache directory.

Chrome 23's cache is split into two directories:

  • ~/Library/Caches/Google/Chrome/Default/Cache (web browsing)

  • ~/Library/Caches/Google/Chrome/Default/Media Cache (videos, music, etc.)

To clear the cache, it would suffice to execute the following command:

rm -fr ~/Library/Caches/Google/Chrome/Default/*

Change Default to your user profile's name if you have created one.

Share:
5,048

Related videos on Youtube

user137369
Author by

user137369

Updated on September 18, 2022

Comments

  • user137369
    user137369 over 1 year

    Is there a way to clear Google Chrome's cache via a CLI command on OSX? Ideally this would be made via some “official” way, and preferably without having to open Chrome (i.e. by launching it with some flags).

  • user137369
    user137369 over 11 years
    I thought so, unfortunately. Well, anyway, on OSX there's ~/Library/Caches/Google/Chrome/Default/.
  • PsychoData
    PsychoData about 9 years
    Does this still hold true for Chrome 42?