Legacy | Uninstall applications

  • Command: application

  • Subcommand: reset

  • Supported Platforms: Native (legacy), UFT (legacy), Selenium, Appium

    All commands must be executed using the same framework. Sharing the execution ID between different frameworks is not possible. This means that if you work with a Selenium/Appium driver, you need to call the commands using the Selenium/Appium driver (or, in the case of Reporting commands, through the Reporting SDK that works with the driver) and not as part of a UFT test or another framework.

  • Supported OS: Android, iOS

Description

Uninstalls all applications on the device, returning the device to its initial state. This does not affect applications pre-installed on the device.

You can remove a single application or all applications from the device, returning it to its out-of-the-box state. For more information on removing a single application, seeUninstall application.

Parameters

Name Value Default Description
deviceID*     The device for this command.

* Mandatory parameter

Request & Response

Copy

Request

https://mycloud.perfectomobile.com/services/executions/samb@perfectomobile.com_controller_16-11-06_15_24_03_46?operation=command&securityToken=<your_token>&command=application&subcommand=reset&param.deviceId=6370E775
Copy

JSON response

 {
    "reason":"Success",
    "timer.elapsed":"609",
    "returnValue":"OK",
    "testGridReportUrl":"https://mycloud.reporting-stg.perfectomobile.com?externalId[0]=samb@perfectomobile.com_controller_16-11-06_15_24_03_46",
    "description":"Success",
    "timer.system":"16",
    "completed":"true",
    "flowEndCode":"SUCCEEDED",
    "executionId":"samb@perfectomobile.com_controller_16-11-06_15_24_03_46",
    "timer.ux":"593",
    "singleTestReportUrl":"https://mycloud.perfectomobile.com/nexperience/singletest/report/?reportRepositoryKey=PRIVATE:controller/161106/controller_16-11-06_15_24_03_46.xml&ownerId=samb@perfectomobile.com&sharingCode=a5ddf904-e458-4851-a36e-311cb47a2f22",
    "reportKey":"PRIVATE:controller/161106/controller_16-11-06_15_24_03_46.xml",
    "timer.device":"593"}