Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 ?

like image 946
Sarath Avatar asked Dec 16 '13 11:12

Sarath


People also ask

How do I clear local storage in dev tools?

From the Power BI service page, press F12 to open the Developer tools. Go to the Debugger view. Press Ctrl+O or click the folder and choose localStorage. Select all and press Delete.

Does localStorage clear on clearing cache?

Local Storage data will not get cleared even if you close the browser. Because it's stored on your browser cache in your machine. Local Storage data will only be cleared when you clear the browser cache using Control + Shift + Delete or Command + Shift + Delete (Mac)


2 Answers

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)
like image 98
Paul D. Avatar answered Oct 12 '22 12:10

Paul D.


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?

like image 42
Prateek Avatar answered Oct 12 '22 13:10

Prateek