I have object like this
@interface Clubs : NSManagedObject
@property (nonatomic, retain) NSString * catname;
@property (nonatomic, retain) NSString * clubdescription;
@property (nonatomic, retain) NSString * clubid;
@property (nonatomic, retain) NSString * clubname;
@property (nonatomic, retain) NSString * distance;
@property (nonatomic, retain) NSString * logopath;
@property (nonatomic, retain) NSString * phone;
@property (nonatomic, retain) NSString * clubtype;
@end
I want to delete only those object have are particular clubid?
Suppose there are twenty clubs are added to CoreData, only these object I want to delete whose clubid is 120.
Thanks
There's no batch Core Data method for deleting a set of objects matching a predicate. You will have to retrieve them and delete them by iterating through the results.