Uninstall applications (FR)

Perfecto Command

mobile:application:reset

Purpose

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, see Uninstall application.

Parameters

None

Return Value

String - "OK" or "Failed"

Exceptions

None

Examples

Copy

Java sample

//declare the Map for script parameters
Map<String, Object> params = new HashMap<>();
 
driver.executeScript("mobile:application:reset", params);
Copy

C# sample

//declare the Map for script parameters
Dictionary<String, Object> pars = new Dictionary<String, Object>();
 
driver.ExecuteScript("mobile:application:reset", pars);