How to reset the app state when running through a new test?

many depends on your app. many apps even after delete and install can automatically login.