1 Reply Latest reply: Nov 17, 2010 9:34 PM by ra5ul
Rajeev Deut Level 1 (25 points)
Can anyone tell me the easiest/best way to delete individual lines in a website's local storage?

When I go in to the developers console and local storage tab I can see my website listed on the left and when clicked on I get a return of the key/value pairs related to it. But then if I Ctrl-Click on one key/value pair and select "delete" nothing actually happens.

I've tried using the delete key and the same thing happens.

The only way I've found that works is to delete the entire local storage file for that website in my user folder.


Macbook Pro Core 2 Duo 2.33Ghz, Mac OS X (10.6.5)
  • ra5ul Level 3 (500 points)
    that's odd, i'm able to delete keys normally. you could try localStorage.removeItem("keyname") from the javascript console. you can also manipulate the files directly since they're just sql databases, e.g. sqlite3 filename.localstorage and then something like delete from ItemTable where key="keyname"; (in terminal).