Skip to content

UI.LocalStorage.delete() ​

Deletes an item from the browser’s local storage for the current page.

Local storage is scoped to the origin of the current page (protocol, domain, and port).

Usage ​

js
UI.LocalStorage.delete(key: string)

Parameters ​

ParameterTypeDescription
namestringThe name of the local storage item to delete

Example ​

javascript
UI.LocalStorage.delete("cart")

Delete the cart item from local storage.