Ask Your Question

Revision history [back]

Yes, it is possible to apply NSBatchDeleteRequest on entities that contain relationships with delete rules. However, you need to be aware of the delete rules in your data model and how they might impact the deletion operation.

For example, if you have a one-to-one or one-to-many relationship where the delete rule is "cascade," then the related entities will also be deleted when the parent entity is deleted via NSBatchDeleteRequest.

On the other hand, if the delete rule is "nullify," then the related entities will not be deleted, but their relationship values will be set to null.

So, it's important to understand your data model and its delete rules before using NSBatchDeleteRequest.