Clear cache and history

How to clear cache and history of a mobile app in android using (Groovy scripting) Katalon Studio.

Mobile.startExistingApplication(GlobalVariable.ApplicationId)
I tried using the below code
MobileDriver driver = MobileDriverFactory.getDriver()
driver.resetApp();
Mobile.startExistingApplication(GlobalVariable.ApplicationId)

Do I need to use any other lines of code for clearing it so

@helpdesk

Try this
Mobile.startApplication(apkFilePath, true)

1 Like

thanks, this worked. Solved my issue