delete from localstorage object code example Example: remove localstorage localStorage.removeItem("key");