code: def removeFriend(self, user):
          
          user = self.user(user)
          url = self.FRIENDUPDATE if user.friend else self.REMOVEINVITE
          url = url.format(userId=user.id)
          return self.query(url, self._session.delete)
docs: Remove the specified user from all sharing.
  
              Parameters:
                  user (str): MyPlexUser, username, email of the user to be added.