Robert Larsen
Posts: 0
Joined: Fri Aug 02, 2013 6:56 am

Clear Local Storage

What is the best way to set or clear local storage values? And by set I mean set to empty.

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Clear Local Storage

Hello,

If you want to clear all values from all local storage variables than best way is clear local storage values.
pre localStorage.clear(); /pre

If you need to clear only one local storage variable than the best way is set local storage values.

Return to “Issues”