remoce from local storage code example
Example 1: localstorage clear item
localStorage.removeItem(key);
Example 2: get localstorage
function get(){
var getJson = localStorage.getItem('key')
if(getJson){
arrayName = JSON.parse(getJson)
}
}