Page tree
Skip to end of metadata
Go to start of metadata

ApplicationClearData(app)

Supported in iOS Supported in Android

Description

Android - This command will clear the entire application data and cache from the device it is installed on during runtime.

iOS (supported since 12.2) - This command will clear application's data, for more infornmation see Clearing iOS Application Data

Parameters

  • Package Name: The application package name.

Usage

Scenario: On the following example we will use the EriBank Application to demonstrate the use of this command.

Step 1: Go to Settings Tab (Settings->App->All->EriBank).

See the app info. In this example

Step 2: Execute the applicationClearData command.

Step 3: Check the result.


Clearing iOS Application Data

  • Supported only on applications signed for development
  • Some of the capabilities required instrumentation from 12.2
  • Application's Permissions (such as Camera / Notifications / Location permissions) will not be cleared using clearApplicationData command. Clearing these will require reinstallation or manual management via the Settings app

Will  clear application data of the following types:

  1. Application's Container - All files created by the application
  2. Application's Group Container * - All files created by the application's groups, as listed in its Info.plist (supported only for Instrumented app). 
  3. Application's Defaults - User defaults configured by the application
  4. Application's Settings * - Special type of user defaults that are configured by the developer in the 'Settings.bundle' and stored in the device settings app (supported only for Instrumented app)
  5. Application Group Keychain Items * - Passwords, keys and other types of  data stored in the device keychain (supported only for Instrumented app)

* Will take affect on the next launch of the application  


Code Examples

Java Example
client.applicationClearData("com.experitest.ExperiBank/.LoginActivity");
C# Example
client.ApplicationClearData("com.experitest.ExperiBank/.LoginActivity");
VBScript Example
client.ApplicationClearData "com.experitest.ExperiBank/.LoginActivity"
Python Example
self.client.applicationClearData("com.experitest.ExperiBank/.LoginActivity")
Perl Example
$client->applicationClearData("com.experitest.ExperiBank/.LoginActivity");
  • No labels