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