Parameters
Code Example
Related APIs
my.clearStorage
Clear all storage
my.removeStorageSync
Remove synchronously
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Remove data from local cache asynchronously.
| Property | Type | Required | Description |
|---|---|---|---|
| key | String | Yes | Storage key to remove |
| success | Function | No | Callback on success |
| fail | Function | No | Callback on failure |
| complete | Function | No | Callback that always executes |
my.removeStorage({
key: 'userSettings',
success: () => {
console.log('Data removed');
}
});