title: Delete all records in NSManagedObjectContext
body: <p>Is there a way to delete all the records from an <code>NSManagedObjectContext</code>?</p>
  
  <p>I'm using the following code to insert data:</p>
  
  <pre><code>NSManagedObjectContext * context = [[NSApp delegate] managedObjectContext];
  NSManagedObject        * basket  = nil;
  
  basket = [NSEntityDescription insertNewObjectForEntityForName:@"ShoppingBasket"
                                         inManagedObjectContext: context];  
  [basket setValue:[firstSelectedObject valueForKey:@"accessoryID"]
            forKey: @"accessoryID"];
  </code></pre>
  
  <p>How do I delete all the records? I want something that's like the "remove:" function, but to remove everything.</p>