How do I clear the data that an application might have stored on the device before installing the app?

How do I clear the data that an application might have stored on the device before installing the app?

Hello Toby-steed,

You can add the capability clearPackageData=TRUE OR clearPackageData=FALSE to clear the data that the application might have stored on the device before the app gets installed. Useful when we are running the same test case on the same device.