iphone - erasing all data on a coredata object
<p>I am new to coredata. Even so, I have managed to understand it within a certain degree and all is working fine. The only thing I was not able to do is to erase the whole database.</p>

<p>How do I do that?</p>

<p>I am on a ViewController and the database was initialized by the delegate. My project was based on Apple templates.</p>

<p>How do I erase the database and recreate it completely empty if it was created by the delegate?</p>

<p>Please refrain from pointing me to this "answer"
<a href="http://stackoverflow.com/questions/1077810/delete-reset-all-entries-in-core-data">Delete/Reset all entries in Core Data? </a></p>

<p>because it is not complete and do not covers how I recreate the whole thing. It just covers how to delete stuff.</p>

<p>thanks</p>
