How to remove a user from a user group?
assignUserToGroups has $groupIds parameter (int / array) preset to null. From the docs:


  assignUserToGroups($userId, $groupIds = null)


So calling the function without that parameter set should do it:

craft()-&gt;userGroups-&gt;assignUserToGroups(1);