my.removeStorage

Remove cached data.

This is an asynchronous interface.

Removing the webview embedded storage data will not remove the storage data of the Mini Program.

Sample Code

copy
my.removeStorage({
  key: 'currentCity',
  success: function(){
    my.alert({content: 'remove success'});
  }
});

Parameters

NameTypeMandatoryDescription
keyStringYesCache data key
successFunctionNoCallback function upon call success
failFunctionNoCallback function upon call failure
completeFunctionNoCallback function upon call   completion (to be executed upon either call success or failure)