# Deleting Objects in Core Data

DevFeed: [Deleting Objects in Core Data](<https://devfeed.tech/articles/deleting-objects-in-core-data-37498.md>)

Original publisher: [Read original article](<https://www.cimgf.com/2014/02/25/deleting-objects-in-core-data/>)

Author: Marcus Zarra

Published: 2014-02-25T21:11:07Z

Content type: opinion

Language: en

Sources: [Cocoa Is My Girlfriend](<https://devfeed.tech/sources/cocoa-is-my-girlfriend.md>)

Topics: [iOS](<https://devfeed.tech/topics/ios.md>), [Framework](<https://devfeed.tech/topics/framework.md>), [Exception](<https://devfeed.tech/topics/exception.md>), [notifications](<https://devfeed.tech/topics/notifications.md>)

Tags: [core-data](<https://devfeed.tech/tags/core-data.md>), [crash](<https://devfeed.tech/tags/crash.md>), [exception](<https://devfeed.tech/tags/exception.md>), [exceptions](<https://devfeed.tech/tags/exceptions.md>), [framework](<https://devfeed.tech/tags/framework.md>), [ios](<https://devfeed.tech/tags/ios.md>), [know](<https://devfeed.tech/tags/know.md>), [notifications](<https://devfeed.tech/tags/notifications.md>), [rants](<https://devfeed.tech/tags/rants.md>)

## AI overview

The article argues against avoiding deletion of Core Data managed objects or restricting deletion to application startup. It recommends planning for deletion, using Core Data's built-in change notifications or a custom observer, and avoiding access to objects after they have been deleted because behavior differs across iOS versions and can cause exceptions or crashes.

## Source excerpt

I very rarely speak out against another blog post. I find the resulting argument back and forth draining. However, there are exceptions and one occurred over the weekend. Brent Simmons has been blogging about his conversion of Vesper to a Core Data application. A recent post of his titled Core Data and Deleting Objects set [...]