title: iPhone application crash when removing persistent store
body: <p>I am having an issue deleting/resetting the core data database in my iphone app, typically when I call the following:</p>
  
  <pre><code>[self.persistentStoreCoordinator removePersistentStore:persistentStore error:&amp;localError];
  </code></pre>
  
  <p>or</p>
  
  <pre><code>[self.managedObjectStore resetPersistentStores:] // Restkit
  </code></pre>
  
  <p>I am able to call this the first time the application launches but it seems whenever I have data loaded into the tableview, the application will hang when trying to remove the persistent store.  Is this the proper way to reset the core data database?</p>
  
  <p>Thanks!</p>