How to remove relationships between entries I have a channel called 'Activities' and a channel called 'Members'. 
In 'Activities' I have a field called 'Accepted'. I want to be able to add and remove 'Members' to the field 'Accepted'.
I want to do this in a plugin that I am building. Is there a method to add or delete a single 'Member' to the 'Accepted' field of an 'Activity'?
Basically is should remove the relationship between the Activity and the Member, but it should not remove the Member itself.
A relationship field expects an array of element IDs. So to remove a user, you'd just get all the current IDs and remove
the one you want to delete.

// Get the current member IDs
$members = $entry-&gt;accepted-&gt;ids();

// Remove a member ID
$key = array_search(52, $members); 
if ($key !== false) {
    unset($members[$key]);
}

// Add a new member ID
$members[] = 83;

// Update the member IDs
$entry-&gt;setContentFromPost(array(
    'accepted' =&gt; $members
));