js remove all local storage
snippet in javascript

js remove all local storage

user9362

window.localStorage.clear(); //clear all localstorage
window.localStorage.removeItem("my_item_key"); //remove one item

javascript clear localstorage

user1268

window.localStorage.clear(); //clear all localstorage
window.localStorage.removeItem("my_item_key"); //remove one item