clear localstorage on click code example
Example: javascript clear localstorage
window.localStorage.clear(); //clear all localstorage
window.localStorage.removeItem("my_item_key"); //remove one item
window.localStorage.clear(); //clear all localstorage
window.localStorage.removeItem("my_item_key"); //remove one item