Silk Mobile

Table of Contents (Homepage)

ApplicationClearData

void ApplicationClearData(app)

images/images/os-icons/os_android_150x150.png

Description

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

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

images/download/attachments/3309661/8.jpg

Step 2: Execute the applicationClearData command.

images/download/attachments/3309661/9.jpg

Step 3: Check the result.

images/download/attachments/3309661/10.jpg

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");