I am trying to reset my Core data database when the user sets up there current model.
I have tried various options but none have correctly worked.
I want the Core data and all it's data (Including persistent data) to be deleted before any new data is added.
I have been using SQLite database browser Version 2.0b1 to check that the data has correctly been deleted. Also I have reset the simulator before running each test.
I am looking for a concise solution, I have searched over stackoverflow to find a correct method of doing it.
This solution resulted in the database being completely removed but no new one created. https://stackoverflow.com/a/11812997/1565615
This solution didn't delete all of the data as previous sessions still existed and data that had just been created. https://stackoverflow.com/a/1078306/1565615