Zeyad Gasser Zeyad Gasser - 1 year ago 190
Android Question

How to delete realm objects with their child relations?

I have a big object that has a lot of relationships with other objects and those objects have relationships with other objects as well. So when i delete the root object, i found out that only the parent object is being deleted while all its relationships are not, is there way to delete the whole tree in the same transaction ?

Answer Source

Realm doesn't support cascading delete for now. You can vote for that feature there. In current case, seems you need to do it manually, one by one.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download