Ask Different is a question and answer site for power users of Apple hardware and software. 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 it possible to clear out Chrome's history from the command line? I know that this history is also cached online, ideally it would be good to do this from the command line as well.

share|improve this question

The Google Chrome history files live in ~/Library/Application Support/Google/Chrome/Default. If you really, really want to delete browsing history from the command line (why?), I think removing the history files in this directory with a command line command/script would be the only way to go like this guy is doing. , as Google Chrome does not provide any ready-made commands or command switches for deleting history according to this list.

However, please consider this excerpt from the README-file:

Google Chrome settings and storage represent user-selected preferences and information and MUST not be extracted, overwritten or modified except through Google Chrome defined APIs.

So, do it at your own risk. I would experiment with deleting the history files of a test installation of Google Chrome and see what happens.

share|improve this answer
I too need this, as often i have to clear chrome history to load latest code while doing web-development. – Sutikshan Dubey Jul 5 '15 at 7:03

To delete the files containing the all-time history (past 10 weeks) and the current (logged) history, do:

cd ~/Library/Application\ Support/Google/Chrome/Default


rm History History-journal

share|improve this answer

just press command and Q at the same time it works every time bro ;) good luck

share|improve this answer
how does this solve the problem described in the question? – patrix Aug 24 '15 at 9:32

Your Answer


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.