how to empty firefox dom localstorage
firefox, local-storage
Solution
Open the built-in console, CtrlShiftK (it's faster than Firebug), and paste the following code:
while (localStorage.length) localStorage.removeItem(localStorage.key(0));
This snippet will delete all localStorage key-value pairs on the given website.
Problem
I'm trying to clear my local storage in Firefox 13.0 so I can continue using Lawnchair. In Firebug [Dom] tab, I have been manually deleting properties from `'localstorage'` key, but it takes about 10 seconds per delete (only 454 * 10 seconds to go!). (I hoped I could release enough space to let Lawnchair.nuke() do its job, but haven't been able to so far.) I tried visiting about:config to turn off and back on localstorage but that didn't delete what was in there. How can I mass-delete local storage for one website in Firefox?