Removes an array of user from a group.

@param \Claroline\CoreBundle\Entity\Group $group
@param User[]                             $users
546069
public function removeUsersFromGroup(Group $group, array $users)
    {
        foreach ($users as $user) {
            $group->removeUser($user);
            $this->eventDispatcher->dispatch('log', 'Log\LogGroupRemoveUser', array($group, $user));
        }

        $this->om->persist($group);
        $this->om->flush();
    }
47363
private function deleteAuthtokens(Entity\Users $user)
    {
        /** @var Repository\AuthtokenRepository $repo */
        $repo = $this->em->getRepository(Entity\Authtoken::class);
        $repo->deleteTokens($user->getId());
    }
681171
public function removeUser($userUri, core_kernel_classes_Resource $group) {
        $user = new \core_kernel_classes_Resource($userUri);
        return $user->removePropertyValue(new core_kernel_classes_Property(self::PROPERTY_MEMBERS_URI), $group);
    }
885710
public function removeGroup(GroupInterface $group): void
    {
        if (!$group instanceof Production) {
            throw new Exception('Group type not supported.');
        }
        $this->groups->removeElement($group);
    }
445426
public function delete($key, $group = self::DEFAULT_GROUP) {
        if( isset($this->settings[$group][$key]) )
            unset($this->settings[$group][$key]);

        return $this;
    }
1193108
public function removeUsers(array $userIds)
    {
        $userMongoIds = array();
        foreach ($userIds as $userId) {
            $userMongoIds[] = new \MongoId($userId);
        }

        $qb = $this->createQueryBuilder();
        $qb->remove()
           ->field('id')->in($userMongoIds)
           ->getQuery()
           ->execute();
    }
1212058
public function removeGroup(Group $group)
    {
        $this->hasGroupsProperty();

        if ($this->groups->contains($group)) {
            $this->groups->removeElement($group);
        }
    }
671239
public function clearGroup($group)
    {
        $success = false;
        wincache_ucache_inc($this->_config['prefix'] . $group, 1, $success);

        return $success;
    }
19107
public function removeUser(User $user): bool
	{
		if(!$this->isPersisted)
		{
			throw new LogicException('You can only remove a user from a group that exist in the database.');
		}

		if(!$user->isPersisted())
		{
			throw new LogicException('You can only remove a user that exist in the database from a group.');
		}

		return $this->users()->unlink($user);
	}
604308
public function forget($key, $user = null)
    {
        $this->getPreferenceOrFail($key);

        $this->backend->removePreference($key, $this->getUserId($user));
    }
577286
def delete_user_from_group(self, GroupID, UserID):
        """"""
        # http://teampasswordmanager.com/docs/api-groups/#del_user
        log.info('Delete user %s from group %s' % (UserID, GroupID))
        self.put('groups/%s/delete_user/%s.json' % (GroupID, UserID))
940287
def remove_group_users(user_ids)
      raise 'Attempted to remove a user from a non-group channel!' unless group?

      user_ids = [user_ids] unless user_ids.is_a? Array
      user_ids.each do |user_id|
        API::Channel.remove_group_user(@bot.token, @id, user_id.resolve_id)
      end
      self
    end
769584
public function clearGroup($group)
    {
        $success = false;
        apcu_inc($this->_config['prefix'] . $group, 1, $success);

        return $success;
    }
1330167
public function removeGroup(GroupInterface $group)
	{
		if ($this->inGroup($group))
		{
			$this->remove('groups', $group);
		}

		return true;
	}
693836
protected function CanEdit(Usergroup $group)
    {
        return self::Guard()->Allow(BackendAction::Edit(), $group)
            && self::Guard()->Allow(BackendAction::UseIt(), new UsergroupForm());
    }
148453
public function reset(array $keys, $user = null)
    {
        foreach ($keys as $key) {
            $this->getPreferenceOrFail($key);
        }

        $this->backend->removePreferences($keys, $this->getUserId($user));
    }
12098
public function clear($group = null) {
        if( isset($group) )
            unset($this->settings[$group]);
        else
            $this->settings = [];

        return $this;
    }