Skip to main content

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.

Notes

Clear the app's saved data; all threads are blocked during the process.
This function may take a very long time; force-stopping the script during execution may be slow (hard-kill).
WARNING: The effect of this function is irreversible.

Example

clear.app_data("com.tencent.xin")