Zeyad Gasser Zeyad Gasser - 6 months ago 53
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 ?


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.