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