Shortcut to clear site data from the Google Chrome command line

By Gulshan Saini
Published in Browser
July 08, 2020
1 min read

If you are familiar with Google Chrome developer console, then you might have already used Application > Clear Storage to clear site data. As we can see in the screenshot below, we can select what all things get deleted.

Chrome clear site data
Chrome clear site data

The Application > Clear Storage option gives you more control, however, sometimes I feel its time consuming to figure out where Application tab is in the first place and then click on the Clear Site Data button.

In version, 75 the Google Chrome team added support to clear the site data directly from the command menu. This new shortcut is going to save some time in my opinion.

To open the command menu, press, Control+Shift+P(Windows) or Command+Shift+P (Mac), and then type Clear site data command.

Chrome clear site data shortcut
Chrome clear site data shortcut

This is going to delete all data related to the page, including

  • Service workers
  • localStorage
  • sessionStorage
  • IndexedDB
  • Web SQL
  • Cookies
  • Cache
  • Application Cache.


Previous Article
How to use localStorage in web application using JavaScript?

Related Posts

How to launch Chrome browser from command line?
September 10, 2020
1 min
Gulshan Saini

Gulshan Saini

Fullstack Developer



Subscribe to our newsletter!

We'll send you the best of our blog just once a month. We promise.

Quick Links

Contact UsBrowserCSSPythonPuppeteer

Social Media