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
189782
public static function removeNewUserGroup($code)
    {
        if (isset(self::config()->new_user_groups[$code])) {
            unset(self::config()->new_user_groups[$code]);
        }
    }
554295
public static function stop($code, $msg = null)
    {
        Response::status($code, false) && self::trigger('changestatus', array($code, $msg));

        if (self::$state < 4) {
            self::$state = 4;
            self::trigger('finish');
        }

        exit;
    }
544226
public function remove(string $key): void
    {
        if (isset($this->orgData[$key])) {
            if (isset($this->updateAttributes[$key])) {
                unset($this->updateAttributes[$key]);
            }
        } else {
            if (isset($this->addAttributes[$key])) {
                unset($this->addAttributes[$key]);
            }
        }
        $this->removeAttributes[$key] = 0;
    }
827007
public function removeGroup($groupName)
    {
        if (true === is_string($groupName) && true === in_array($groupName, $this->groups)) {
            foreach (array_keys($this->groups, (string)$groupName, true) as $key) {
                unset($this->groups[$key]);
            }
        }
        return $this;
    }
716888
public function removeConfigGroup(\VinceT\AdminConfigurationBundle\Entity\ConfigGroup $configGroup)
    {
        $this->configGroups->removeElement($configGroup);
    }
89376
public function removeAllUsersFromGroup(Group $group)
    {
        $users = $group->getUsers();

        foreach ($users as $user) {
            $group->removeUser($user);
        }

        $this->om->persist($group);
        $this->om->flush();
    }
1212058
public function removeGroup(Group $group)
    {
        $this->hasGroupsProperty();

        if ($this->groups->contains($group)) {
            $this->groups->removeElement($group);
        }
    }
1091431
public function removeGroup($group = null, $handle = null)
    {
        if (is_null($group)) {
            return $this->groups = [];
        }

        if (is_null($handle)) {
            unset($this->groups[$group]);

            return;
        }

        unset($this->groups[$group][$handle]);
    }
444306
private function addGroup($group)
	{
		if($group != null)
		{
			if($this->_groups == null)
				$this->_groups = array();
			$this->_groups[] = $group;
		}
	}
661819
public function removeme()
    {
        // existing user ?
        $oUser = oxNew(\OxidEsales\Eshop\Application\Model\User::class);
        if ($oUser->load(\OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('uid'))) {
            $oUser->getNewsSubscription()->setOptInStatus(0);

            // removing from group ..
            $oUser->removeFromGroup('oxidnewsletter');

            $this->_iNewsletterStatus = 3;
        }
    }
1126857
public function addGroupIfNotExists($code, $fields = array()) {
        $groupId = $this->getGroupId($code);
        if ($groupId) {
            return intval($groupId);
        }

        return $this->addGroup($code, $fields);
    }
977352
public function remove($code)
    {
        $entityManager = $this->getEntityManager();

        $queryBuilder = $entityManager->createQueryBuilder();
        $queryBuilder
            ->delete($this->entityName(), 'p')
            ->where('p.code = :code')
            ->setParameter('code', $code);

        return $queryBuilder->getQuery()->execute();
    }
756628
function group($group)
    {
        if (!empty($group))
        {
            self::sql_safe($group);
            $this->group = "group by $group";
        }
        else
        {
            $this->group = '';
        }
    }
296627
public function delGroup($group) {
    if ($group->inArray((array) $this->groups)) {
      foreach ((array) $this->groups as $key => $curGroup) {
        if ($group->is($curGroup)) {
          unset($this->groups[$key]);
        }
      }
      return $this->groups;
    }
    return true;
  }
1040589
protected function updateLanguage($code)
    {
        if (!$this->isError() && !$this->language->update($code, $this->getSubmitted())) {
            $this->errorAndExit($this->text('Unexpected result'));
        }
    }
198056
public function checkGroup($groupCode)
    {
        /** @var SecurityContext $securityContext */
        $securityContext = $this->container->get('thelia.securityContext');

        return $securityContext->hasCustomerUser() && $this->getGroupCode() === $groupCode;
    }
987297
public function group($typeId, $group = null, $code = null)
    {
        return $this->processor->group($this, $typeId, $group, $code);
    }