We are using aws device farm
for running all our android espresso tests. In each test, the user is supposed to login into the app but I want to clear all the device's data(login info) once the test is finished, since the login credentials are getting saved in the device which is affecting our other test's flow. All our tests are independent and should be run in parallel. It seems to me that device farm
is not clearing the previous data after each run.
Could anyone tell me how can I delete the device's data after each test run? I will highly appreciate your help.