Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 3 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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.