deleteAllWithError does not delete an entity.
We are facing an issue in our project, sometimes using "deleteAllWithError" for an entity doesn't delete it. Help will be appreciated.
Is it possible you're deleting the items in one thread and the items that persist are being managed and saved in another thread?
@chriscdn I am saving & deleting items on main thread only. While deleting I am using "deleteAllWithError" method of RHMangedObject which internally uses "managedObjectContextForCurrentThreadWithError" method & saving process uses "managedObjectContextManager" method. Is this issue happening due to this?
Is this issue happening due to this?
I don't think so. In the end both methods use the NSManagedObjectContext for the current thread, which is the same if you're doing this all from the same thread. Something else to check: Can you confirm the items not being deleted have actually been saved?
Issue resolved. Reason was, after deleting an entity we were not using "commit" for that entity. Thanks.