views:

19

answers:

0

I use two PersistenceStores one for saving phone setting related entities and Other for saving User details related entities. I need to clear all the User details related entity on log off , so i delete the userdetails.sqlite using [NSFileManager removeItemAtPath: error:] method. After this i setup the managedobjectcontext but i am not able to persist anything. But after restarting the app persistence will work.

am i doing any thing stupid ? Is there another way to clear all the data in a particular Pesistencestore?