Clear my own apps data programatically
<p>I am developing an app where I want to allow the user to be able to set up that if they fail the login after a couple of attempts into the app, it will automatically delete all the data including the preferences and databases. </p>

<p>Is there a simple way to do this or do I have to write code to manually reset everything the app uses. </p>

<p>Thanks for any help with this</p>
