Remove a group from the list of groups a new user is added to on
registering.

@param string $code Group code that will be used

@return void
766240
public static function removeVerificationGroup($code)
    {
        if (isset(self::config()->verification_groups[$code])) {
            unset(self::config()->verification_groups[$code]);
        }
    }
984437
public void removeGroup(@Nullable L group) {
        if (group == null) {
            return;
        }
        List<L> cards = getGroups();
        boolean changed = cards.remove(group);
        if (changed) {
            setData(cards);
        }
    }
719789
protected function deleteCategoryGroup()
    {
        $this->controlAccess('category_group_delete');

        if ($this->category_group->delete($this->data_category_group['category_group_id'])) {
            $this->redirect('admin/content/category-group', $this->text('Category group has been deleted'), 'success');
        }

        $this->redirect('', $this->text('Category group has not been deleted'), 'warning');
    }
354822
public function remove(string $key): void
    {
        if (isset($this->data[$key])) {
            unset($this->data[$key]);
            
            $this->size--;
        }
    }
295899
public function deleteGroup($groupId)
    {
        $objectStates = $this->loadObjectStates($groupId);
        foreach ($objectStates as $objectState) {
            $this->objectStateGateway->deleteObjectStateLinks($objectState->id);
            $this->objectStateGateway->deleteObjectState($objectState->id);
        }

        $this->objectStateGateway->deleteObjectStateGroup($groupId);
    }
467141
public static function removeUserFromGroups($uid)
	{
		$db = \App::get('db');
		$tables = array('#__xgroups_members', '#__xgroups_managers', '#__xgroups_invitees', '#__xgroups_applicants');

		foreach ($tables as $table)
		{
			$sql = "DELETE FROM `".$table."` WHERE uidNumber=" . $db->quote($uid);
			$db->setQuery($sql);
			$db->query();
		}

		return true;
	}
1199299
public function removeGroup($id_group)
    {
        try {

            $this->db->beginTransaction();

            // Delete usergroup
            $this->db->qb([
                'table' => 'core_groups',
                'method' => 'DELETE',
                'filter' => 'id_group = :id_group',
                'params' => [
                    ':id_group' => $id_group
                ]
            ]);
            $this->db->execute();

            // Delete permissions related to this group
            $this->db->qb([
                'table' => 'core_permissions',
                'method' => 'DELETE',
                'filter' => 'id_group = :id_group',
                'params' => [
                    ':id_group' => $id_group
                ]
            ]);
            $this->db->execute();

            // Remove group from current grouplist
            unset($this->groups[$id_group]);

            $this->db->endTransaction();
        }
        catch (\PDOException $e) {

            $this->db->cancelTransaction();

            Throw new GroupException($e->getMessage(), $e->getCode(), $e->getPrevious());
        }
    }
430919
public function removeSettingItem($owner, $code)
    {
        if (!$this->items) {
            throw new SystemException('Unable to remove settings item before items are loaded.');
        }

        $itemKey = $this->makeItemKey($owner, $code);
        unset($this->items[$itemKey]);

        if ($this->groupedItems) {
            foreach ($this->groupedItems as $category => $items) {
                if (isset($items[$itemKey])) {
                    unset($this->groupedItems[$category][$itemKey]);
                }
            }
        }
    }
1373917
public function removeGroup(
        $query_name = ""
    ) {
        if (!($grp = ReporticoUtility::getGroupColumn($query_name, $this->groups))) {
            return;
        }

        $cn = 0;
        $ct = 0;
        foreach ($this->groups as $k => $v) {
            if ($k->group_name == $query_name) {
                $cn = $ct;
                break;
            }

            $ct++;
        }

        // finally remove the column
        array_splice($this->groups, $cn, 1);
    }
1350451
public function setGroupIdList($groupList)
    {
        if (!empty($groupList)) {
            foreach ($groupList as $group) {
                $this->groupIds[] = $group['GroupId'];
            }
        }

    }
525999
public function exportGroup($code) {
        $item = $this->prepareExportGroup(
            $this->getGroup($code)
        );

        if (!empty($item['STRING_ID'])) {
            return $item;
        }

        $this->throwException(__METHOD__, 'code not found');
    }
98753
public function setGroupId($value)
    {
        $this->_validateNotNull('GroupId', $value);
        $this->_validateInt('GroupId', $value);

        if ($this->data['group_id'] === $value) {
            return;
        }

        $this->data['group_id'] = $value;

        $this->_setModified('group_id');
    }
95648
protected function deleteLinked($code)
    {
        $this->db->delete('city', array('country' => $code));
        $this->db->delete('state', array('country' => $code));
    }
193926
public function setCode(int $code)
    {
        $allowed_codes = [
            0,
            1,
            2
        ];

        if (!in_array($code, $allowed_codes)) {
            $code = 1;
        }

        $this->code = $code;
    }
1048564
public function editLanguage($code = null)
    {
        $this->setLanguage($code);
        $this->setTitleEditLanguage();
        $this->setBreadcrumbEditLanguage();

        $this->setData('edit', isset($code));
        $this->setData('language', $this->data_language);
        $this->setData('can_delete', $this->canDeleteLanguage());
        $this->setData('default_language', $this->language->getDefault());

        $this->submitEditLanguage();
        $this->outputEditLanguage();
    }
186082
public function deleteGroup(Group $group)
    {
        $this->eventDispatcher->dispatch(
            'claroline_groups_delete',
            'GenericData',
            [[$group]]
        );

        $this->om->remove($group);
        $this->om->flush();
    }
281114
public function deleteCode(Entity $userCode)
    {
        $entityManager = $this->entityManager;
        $entityManager->remove($userCode);
        $entityManager->flush();
    }