# wx.removeStorageSync(string key)

The synchronous version of wx.removeStorage.

# Parameters

# string key

The specified key in the local cache

# Sample Code

wx.removeStorage({
  key: 'key',
  success (res) {
    console.log(res)
  }
})
try {
  wx.removeStorageSync('key')
} catch (e) {
  // Do something when catch error
}
点击咨询小助手