Clear an app's saved data (clear.app_data)
Declaration
ok = clear.app_data(bundleId)
Parameters
- bundleId
String. App bundle identifier. You can find it under "XXT App -> More -> App List".
Returns
- ok
Boolean. true on success; false otherwise.
Description
Clear the app's saved data; all threads are blocked throughout the operation.
This function may take a very long time; force-stopping the script mid-run can be slow (it may require a hard kill).
WARNING: The effect of this function is irreversible.
Example
clear.app_data("com.tencent.xin")