Skip to main content
Use this API to remove all data stored in local cache.

Parameters

PropertyTypeRequiredDescription
successFunctionNoCallback on success
failFunctionNoCallback on failure
completeFunctionNoCallback that always executes

Code Example

my.clearStorage({
  success: () => {
    console.log('Storage cleared');
  }
});

my.removeStorage

Remove specific key

my.clearStorageSync

Clear synchronously