empty local storage chrome in js code example Example: delete local storage javascript localStorage.removeItem(key);