title: CoreData delete multiple objects
body: <p>I know how to delete a single object in CoreData I'm just wondering if theres a simpler way of deleting multiple objects?</p>
  
  <p>For single delete you can use</p>
  
  <pre><code>[moc deleteObject:someManagedObject];
  </code></pre>
  
  <p>but there is no equivalent for multiple objects.</p>
  
  <p>At the moment I'm thinking of doing...</p>
  
  <pre><code>NSArray *arrayOfManagedObjectsToDelete = //...
  
  for (SomeManagedObjectClass *managedObject in arrayOfManagedObjectsToDelete) {
      [moc deleteObject:managedObject];
  }
  </code></pre>
  
  <p>but I wasn't sure if there was another way of doing this?</p>
  
  <p>ideally a method like...</p>
  
  <pre><code>- (void)deleteObjects:(NSSet*)objects
  </code></pre>
  
  <p>on <code>NSManagedObjectContext</code> or some similar method.</p>