Deletion of an item

Hello I want to delete an item programmatically which can potentially be linked to 17different items throughout Aras via relationships which can be 1;1 or 1:m. I can delete it via querying all the 17 relationships  but is there a shorter way where I can just get all those relationships via code in a more dynamic way. So that later if a new 18th relationship with this item is created to another item the code does not need an update.

Parents Reply Children
No Data