Thanks for you comments.
But I guess I might have miss-communicated my requirement.
What I want is, if an issue with Issue ID 1 has Issues with IDs 4 and 10 related to it, I want to remove the relation between 4, 10 and 1 through code.
I’ve looking for a means through the API to remove relations from issue items.
So far this is what I’ve got; each relation amongst items in an Issue list has GUID to represent the relation. This GUID is stored in the “RelationID” field of the list item. The list item also contains a field called “RemoveRelatedID” which is read-only. Its value at runtime is the same as that of the list item’s title.
So far what I’ve been able to piece together is that, the original issue edit form processes the ‘Remove Related Item’ functionality through the owssvr.dll. I believe the owssvr.dll parses the CAML on the EditForm when the ‘Remove’ is clicked for a related Item and deletes the relation for the item. I have a suspicion that this is done through unmanaged code in the dll. The only thing I can deduce is that the relations between list items must be a hidden list in SharePoint with the RelatedID being the keyfield.
Any thoughts?