How to clear localStorage in IE10 & IE11 from developer tool?

JavascriptInternet ExplorerLocal Storage

Javascript Problem Overview


I opened IE11 developer tool it has lot of options , but i cant find how can I the clear localStorage data. ?

is there something like this in IE11 ?

enter image description here

Will clear cache data does not clear localStorage or sessionStorage data ?

Javascript Solutions


Solution 1 - Javascript

Try to type this in the JavaScript console

localStorage.clear();
sessionStorage.clear();

I think this is the most straightforward way to do this. I don't see any option that explicitly affects localStorage and/or sessionStorage in developer tools (at least nothing that looks like the Resources view in Dev Tools in Chrome).

EDIT2 In Microsoft Edge, there is a way to see/clear localStorage, sessionStorage and cookies through the GUI.

  • Open the Dev Tools (F12)
  • Go to Debugger View
  • Open the localStorage tab (click the folder icon or Ctrl+O, select localStorage)
  • Select all and delete (through right clicking, or Ctrl-A + Del)

Solution 2 - Javascript

Try localStorage.clear() and sessionStorage.clear() in Console panel of IE Developer toolbar. It returns an "undefined" but seems to clear local storage and session storage.

For more : How to clear localstorage, sessionStorage and cookies in javascript?

Solution 3 - Javascript

Try this:

window.localStorage.clear();
window.sessionStorage.clear();

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionSarathView Question on Stackoverflow
Solution 1 - JavascriptPaul D.View Answer on Stackoverflow
Solution 2 - JavascriptPrateekView Answer on Stackoverflow
Solution 3 - JavascriptMr.GView Answer on Stackoverflow