title: NSFetchedResultsController Delete All
body: <p>AcaniChat, like the native iPhone Messages app, has a method to clear all messages:</p>
  
  <pre><code>for (Message *message in [fetchedResultsController_ fetchedObjects]) {
      [managedObjectContext_ deleteObject:message];
  }
  if (![managedObjectContext_ save:&amp;error]) {
      // TODO: Handle the error appropriately.
      NSLog(@"Delete message error %@, %@", error, [error userInfo]);
  }
  </code></pre>
  
  <p>But, only when there's a lot of messages being deleted (enough that some are off-screen), AcaniChat crashes with the errors:</p>
  
  <pre><code>2011-04-10 01:06:17.629 AcaniChat[11129:207] Serious application error.  Exception was caught during Core Data change processing.  This is usually a bug within an observer of NSManagedObjectContextObjectsDidChangeNotification.  CoreData could not fulfill a fault for '0x4d7d050 &lt;x-coredata://F07CAEF9-5F38-4A1F-BA17-52A3E2E56978/Message/p42&gt;' with userInfo {
      NSAffectedObjectsErrorKey =     (
          "&lt;Message: 0x4d665b0&gt; (entity: Message; id: 0x4d7d050 &lt;x-coredata://F07CAEF9-5F38-4A1F-BA17-52A3E2E56978/Message/p42&gt; ; data: &lt;fault&gt;)"
      );
  }
  2011-04-10 01:06:17.721 AcaniChat[11129:207] Delete message error Error Domain=NSCocoaErrorDomain Code=133000 "The operation couldn’t be completed. (Cocoa error 133000.)" UserInfo=0x4d9cf70 {NSAffectedObjectsErrorKey=(
      "&lt;Message: 0x4d665b0&gt; (entity: Message; id: 0x4d7d050 &lt;x-coredata://F07CAEF9-5F38-4A1F-BA17-52A3E2E56978/Message/p42&gt; ; data: &lt;fault&gt;)"
  ), NSUnderlyingException=CoreData could not fulfill a fault for '0x4d7d050 &lt;x-coredata://F07CAEF9-5F38-4A1F-BA17-52A3E2E56978/Message/p42&gt;'}, {
      NSAffectedObjectsErrorKey =     (
          "&lt;Message: 0x4d665b0&gt; (entity: Message; id: 0x4d7d050 &lt;x-coredata://F07CAEF9-5F38-4A1F-BA17-52A3E2E56978/Message/p42&gt; ; data: &lt;fault&gt;)"
      );
      NSUnderlyingException = "CoreData could not fulfill a fault for '0x4d7d050 &lt;x-coredata://F07CAEF9-5F38-4A1F-BA17-52A3E2E56978/Message/p42&gt;'";
  }
  2011-04-10 01:06:18.036 AcaniChat[11129:207] CoreAnimation: ignoring exception: CoreData could not fulfill a fault for '0x4d7d050 &lt;x-coredata://F07CAEF9-5F38-4A1F-BA17-52A3E2E56978/Message/p42&gt;'
  </code></pre>
  
  <p>How do I fix this?</p>