Uninstall an app (app.uninstall)
Declaration
ok = app.uninstall(bid)
Parameters
- bid
String. App bundle identifier. You can find it inXXT App -> More -> App List
.
Returns
- ok
Boolean. true if uninstall succeeds; false otherwise.
Notes
- Uninstall an app in background.
- Stopping the script during uninstall may lead to a half-uninstalled state.
Example
if app.uninstall("com.tencent.mqq") then
-- Uninstalled successfully
else
-- Uninstall failed
end