Fix: Delete/Reset all entries in Core Data? #answer #programming #fix
Fix: Delete/Reset all entries in Core Data? #answer #programming #fix
Delete/Reset all entries in Core Data?
Do you know of any way to delete all of the entries stored in Core Data? My schema should stay the same; I just want to reset it to blank.
Edit
I’m looking to do this programmatically so that a user can essentially hit a reset button.
Answer [by Hunter]: Delete/Reset all entries in Core Data?
Delete the persistent store file and setup a new persistent store…
View On WordPress














