my.clearStorage

Clear local data cache.

This is an asynchronous interface.

Clearing the webview embedded storage data will not clear the storage data of the Mini Program.

The cached data are user isolated, which means if user logs out wallet and logs in as a different user, the mini program will not be able to get previous user's cached data.

Sample Code

copy
my.clearStorage()