Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8273287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:25:18+00:00 2026-06-08T07:25:18+00:00

I am developing an iOS application and i am using CoreData to persiste my

  • 0

I am developing an iOS application and i am using CoreData to persiste my data. The application is like iBooks, we can download a book, read a book, takes notes in the book,… and for this i have many entities in CoreData (NoteEntity,….).
Now i have a functionality witch is removing a book downloaded by the user ( the user can download many books and there are a functionality to delete a book ( to have spaces for example)). My question is, is there a simple way to remove all the objects in CoreData ( all the objects corresponding to the book deleted by the user) Thanks for your answers.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T07:25:20+00:00Added an answer on June 8, 2026 at 7:25 am

    Create a “Cascade” delete relationship between the book and all objects associated with it.

    From Core Data programming guide:

    Relationship Delete Rules: A relationship’s delete rule specifies what
    should happen if an attempt is made to delete the source object. Note
    the phrasing in the previous sentence—”if an attempt is made…”. If a
    relationship’s delete rule is set to Deny, it is possible that the
    source object will not be deleted. Consider again a department’s
    employees relationship, and the effect that the different delete rules
    have.

    …

    Cascade:
    Delete the
    objects at the destination of the relationship. For example, if you
    delete a department, fire all the employees in that department at the
    same time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing an iOS application which deals with constantly changing data which is read
I'm developing an iOS 4 application with latest SDK and XCode 4.2. I'm using
I am developing an application using phonegap for both ios and android. My application
We are developing an drawing application for iOS and android. I am using cubic
I'm developing a large scale application for iOS 5 using ARC in xcode. The
I am new in ios development.Now,i am developing an Ipad application using ios 4.2
I'm developing a little Twitter application on iOS 5. I'm using Twitter and Accounts
I am currently developing an application which is using the Dropbox iOS SDK version
We are developing an iOS Application that connects to a server over https using
I am using flash cs5 and developing for iOS. I am using the application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.