Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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).

share|improve this question
up vote 4 down vote accepted

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|improve this answer
I thought so, unfortunately. Well, anyway, on OSX there's ~/Library/Caches/Google/Chrome/Default/. – user137369 Dec 23 '12 at 13:09
Does this still hold true for Chrome 42? – PsychoData Apr 24 '15 at 1:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .