delete localstorage item react code example Example: delete local storage javascript localStorage.removeItem(key);