Use this to clear localStorage:
localStorage.clear();
More Related Contents:
- What is the max size of localStorage values?
- How do I store an array in localStorage? [duplicate]
- How to save an image to localStorage and display it on the next page?
- How to check whether a Storage item is set?
- Is it safe to store a JWT in localStorage with ReactJS?
- window.localStorage vs chrome.storage.local
- How to use Local storage in Angular [duplicate]
- Is localStorage.getItem(‘item’) better than localStorage.item or localStorage[‘item’]?
- Scope of sessionStorage and localStorage
- Calculating usage of localStorage space
- How to mock localStorage in JavaScript unit tests?
- Accessing localStorage from a webWorker
- Is it possible to use any HTML5 fanciness to export local storage to Excel?
- Javascript/HTML Storage Options Under File Protocol (file://)
- How can I serialize a function in JavaScript?
- How to save data from a form with HTML5 Local Storage?
- How to retrieve all localStorage items without knowing the keys in advance?
- Javascript + HTML5 localstorage [closed]
- Can you use HTML5 local storage to store a file? If not, how?
- How to store objects in HTML5 localStorage/sessionStorage
- localStorage – use getItem/setItem functions or access object directly?
- JavaScript localStorage object broken in IE11 on Windows 7
- Remove array item from localstorage
- json.stringify does not process object methods
- Best way to store small UI user preferences in web app? [closed]
- How can I request an increase to the HTML5 localstorage size on iPad, like the FT web app does?
- Store an array with chrome.storage.local
- On React Router, how to stay logged in state even page refresh?
- Is there a way to increase the size of localStorage in Google Chrome to avoid QUOTA_EXCEEDED_ERR: DOM Exception 22
- Why do two web pages have different localStorage? How can I fix this?