any update on this?
Backendless doesn’t support the cascade deletion natively, you should do in by yourself in your code.
What’s the best practice for deleting children record? Should I do it in client code or should I use Backendless business logic…maybe using the beforeRemove event on the parent table?
If you need one uniform way for deleting child objects when the parent is deleted, I’d do it in server-side business logic.
I do not think there is a best practice for it though. Use-cases will vary. You need to decide on an approach that works the best for you.
Use the “bulk delete” functionality described at:
The where clause would look like this:
ParentTableName[relationNameInTheParentTable].objectId = ‘parentObjectId’