I cache some data from the server locally using core data. Mostly I have to update one or two records in local storage. But sometimes I have to clean my cache for some data type (and there are other data types that I don't want to clear). I don't see a good way to do it. It is clear that I can fetch all objects for given entity type, explicitly remove them from context and save changes but it seems quite inefficient to me. I'd like to avoid restoring all objects from storage just to wipe them in a very same moment. Is there any better way?