Appearance
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
| Parameter | Type | Description |
|---|---|---|
name | string | The name of the local storage item to delete |
Example
javascript
UI.LocalStorage.delete("cart")Delete the cart item from local storage.