my.removeStorageSync

Remove cached data synchronously.

This is a synchronous interface.

Sample Code

copy
my.removeStorageSync({
  key: 'currentCity',
});

Parameters

NameTypeMandatoryDescription
keyStringYesCache data key