HomeDocs
Skip to main content

dlt.clearStorage

Introduction

Clears the local data cache.

Parameters

Object object

PropertyTypeDefaultRequiredDescription
successfunctionNoCallback function for a successful API call.
failfunctionNoCallback function for a failed API call.
completefunctionNoCallback function that will be executed when the API call ends (both success and failure).

object.success Callback Function

Parameters

Object res

PropertyTypeDescription
successstringtrue-Set successfully.

object.fail Callback Function

Parameters

Object res

PropertyTypeDescription
successstringfalse-Set failed.

Sample Code

// pages/index/index.js
Page({
clearStorage() {
dlt.clearStorage();
},
});
Privacy agreementDeveloper agreementcontact us: developer_service.mi@transsion.com © 2024 MiniApp. All Rights Reserved.