Eliminar el almacenamiento local
localStorage.removeItem("key");
Itchy Ibis
localStorage.removeItem("key");
window.localStorage.clear(); //clear all localstorage
window.localStorage.removeItem("my_item_key"); //remove one item
localStorage.removeItem('name');
localStorage.clear();//WARNING!: This will clear all your local storage
localStorage.removeItem(key);
localStorage.clear();