javascript localstorage delete item code example
Example 1: localstorage clear item
localStorage.removeItem(key);
Example 2: javascript get local storage
var Item = localStorage.getItem('youritem');
Example 3: javascript localstorage
var KeyName = window.localStorage.key(index);