How to clear any local storage data 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