Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Deleting items in Local Storage

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.

Help?!?

Macbook Pro Core 2 Duo 2.33Ghz, Mac OS X (10.6.5)

Posted on Nov 16, 2010 3:35 PM

Reply
1 reply

Nov 17, 2010 9:34 PM in response to Rajeev Deut

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).

Deleting items in Local Storage

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.