title: App crashed with error while deleting objects from coredata
body: <p>I am storing some data in data. when i click on button the data in the coredata will be delete.
  I am using the below code.</p>
  
  <pre><code>NSManagedObjectContext *context = [[YPOAppDelegate sharedAppDelegate] managedObjectContext];
  NSManagedObjectModel *model = [[YPOAppDelegate sharedAppDelegate] managedObjectModel];
  
  for (NSEntityDescription *entity in model) {
       NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];
       [fetchRequest setEntity:entity];
       [fetchRequest setIncludesSubentities:NO];
       NSArray *objects = [context executeFetchRequest:fetchRequest error:nil];
       NSLog(@"objects ===%d",objects.count);
       for (NSManagedObject *managedObject in objects)
       {
              [context deleteObject:managedObject];
       }
  }
  
  NSError *err;
  
  [context save:&amp;err];
  </code></pre>
  
  <p>It's getting an error and app is crashed that is <strong>Terminating app due to uncaught exception 'NSObjectInaccessibleException', reason: 'CoreData could not fulfill a fault for '0x7e3937f0 </strong></p>
  
  <p>How to fix this crash issue. Please give me your suggestions.</p>