Answers for "how to clear the local storage in javascript"

5

javascript clear localstorage

window.localStorage.clear(); //clear all localstorage
window.localStorage.removeItem("my_item_key"); //remove one item
Posted by: Guest on July-31-2019
1

javascript local storage delete

localStorage.removeItem('name');
Posted by: Guest on August-23-2021
0

delete local storage javascript

localStorage.removeItem(key);
Posted by: Guest on April-27-2020

Code answers related to "how to clear the local storage in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language