Search code examples
swiftcore-data

How to remove a core data class completely from an xcode project?


I have a core data class that doesn't need to be saved in core data anymore, it will be kept in memory now. What is the right way to delete it from xcdatamodeld and also delete the core data files associated with it?


Solution

  • Go to the .xcdatamodeld file, press on the entity you wish to delete, and just press the delete button on the keyboard. This will delete all the classes that were automatically generated by XCode