how to delete from localstorage code example
Example 1: remove localstorage
localStorage.removeItem("key");
Example 2: localstorage clear item
localStorage.removeItem(key);
Example 3: localstorage remove item
localStorage.removeItem("mytime");