While Chrome does not provide a UI for clearing localStorage, there is an API that will either clear a specific key or the entire localStorage object on a website.
//Clears the value of MyKey window.localStorage.removeItem("MyKey"); //Clears all the local storage data window.localStorage.clear();
Once done, localStorage will be cleared. Note that this affects all web pages on a single domain, so if you clear localStorage for jsfiddle.net/index.html (assuming that's the page you're on), then it clears it for all other pages on that site. See HTML5Goodies - A Peek into Local Data Storage in HTML 5 for more information.
Chrome does not yet provide an interface to manage HTML5 local-storage, so to delete local-storage in Chrome, you will need to either manually search for and delete the file in the
Local Storage sub-directory in the User Data. You can find it by looking for a file that contains the domain name.
You can also use the Delete cookies and other site and plug-in data entry in the Clear browsing data dialog (
chrome://chrome/settings/clearBrowserData or Ctrl+Shift+Delete), however it does not give you fine-grained control at the site level.
For the record, jsfiddle.net does not use local-storage for its frames, it uses standard cookies which you can delete in
chrome://chrome/settings/cookies. Just type
jsf in the edit box, then click the
window_sizes cookie, then the
[Remove] button. To delete all cookies at
jsfiddle.net, just click the
jsfiddle entry (not any spefcific cookie), and press Delete.
If you have Chrome Developer Tools you can see or change the localStorage values
- F12 or CtrlShiftI or ⌘OptI
- Local Storage
It is organized by domain. (localStorage is specific to a domain, not a page.)
Highlight the key/value pairs and click X if you want to delete them.
chrome://settings/siteData did not work for me
This is what works for me in Chrome version 61 :
- scroll down to All cookies and site data, and in the "Search cookies" input enter "localhost"
- then click Remove all shown , or hit the delete button
This clears not just cookies but also local storage and your local databases too
Clear Local Storage extension
Then you can just hit Ctrl + Shift + L then Enter and it clears local storage for the current page, and reloads the page.
A shortcut for this is a must when developing certain kinds of websites, so if Chrome won't provide one, an extension is justified.
As mentioned on the documentation, cookies are not cleared, only local storage.