Support Topics Documentation Slack YouTube Blog

Delete child objects


(Rajasekhar Puligadda) #1

How to delete child objects using parent object (1:N relationship)?


(Vladimir Upirov) #2

Hello
For remove relations you can use this api: https://backendless.com/docs/js/data_delete_relation_with_con2.html

Or if you want to remove these object from child table you can use bulkDelete api https://backendless.com/docs/js/data_multiple_objects_bulk_delete.html with using whereClause for inverted Relation "ParentTableName[relationName].objectId='" + ParentObjectId + "'" like it used here for retrieving https://backendless.com/docs/js/data_inverted_relation_retrieval.html

Regards, Vlad