# wx.removeStorageSync(string key)

Promise 风格 调用:支持

微信 Windows 版:支持

微信 Mac 版:支持

相关文档: 存储策略

# 功能描述

wx.removeStorage 的同步版本

# 参数

# string key

本地缓存中指定的 key

# 示例代码

wx.removeStorage({
  key: 'key',
  success (res) {
    console.log(res)
  }
})
try {
  wx.removeStorageSync('key')
} catch (e) {
  // Do something when catch error
}