By experiment I discovered that```
forms.formName.controller.deleteRecord(relationship);
There's nothing in the documentation about this command taking an argument -- Servoy Developer Reference Guide page 181. Is this "feature" actually supported or is this an oversight in the docs?
The only way this is doing something usefull is:
var relationship = 10;
forms.formName.controller.deleteRecord(relationship)
will now delete the tenth record…as can be seen in the sample code.
To delete an entire (related) foundset (as I expect you are refering to) use:
a_relation.deleteAllRecords()
There is NO other way…to do this.