Skip to main content
Use this API to remove data with a specified key from local cache.

Parameters

PropertyTypeRequiredDescription
keyStringYesStorage key to remove
successFunctionNoCallback on success
failFunctionNoCallback on failure
completeFunctionNoCallback that always executes

Code Example

my.removeStorage({
  key: 'userSettings',
  success: () => {
    console.log('Data removed');
  }
});

my.clearStorage

Clear all storage

my.removeStorageSync

Remove synchronously