-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Deleting Entities
Tony Arnold edited this page May 2, 2014
·
1 revision
To delete a single entity in the default context:
[myPerson MR_deleteEntity];
To delete the entity from a specific context:
[myPerson MR_deleteEntityInContext:otherContext];
To truncate all entities from the default context:
[Person MR_truncateAll];
To truncate all entities in a specific context:
[Person MR_truncateAllInContext:otherContext];
MagicalRecord Guide
- Installing MagicalRecord
- Getting Started
- Working with Managed Object Contexts
- Creating Entities
- Deleting Entities
- Fetching Entities
- Saving Entities
- Usage Patterns
- Importing Data
- Logging
Upgrade Guides
Contributing to MagicalRecord
Resources