Removes chosen user group (groups) from delivery list
424295
public function removecountry()
    {
        $sOxId = $this->getEditObjectId();
        $aChosenCntr = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("countries");
        if (isset($sOxId) && $sOxId != "-1" && is_array($aChosenCntr)) {
            foreach ($aChosenCntr as $sChosenCntr) {
                $oObject2Payment = oxNew(\OxidEsales\Eshop\Core\Model\BaseModel::class);
                $oObject2Payment->init('oxobject2payment');
                $oObject2Payment->delete($sChosenCntr);
            }
        }
    }
382683
def reset_group_subscription(self):
        """"""
        if self._user_assignment:
            raise IllegalStateError(self._SUBSCRIPTION_EXCEPTION_MESSAGE)
        assert self.subscription is not None, 'Subscription required'
        self._group_subscription.intersection_update(self.subscription)
1078251
def deletegroupmember(self, group_id, user_id):
        
        request = requests.delete(
            '{0}/{1}/members/{2}'.format(self.groups_url, group_id, user_id),
            headers=self.headers, verify=self.verify_ssl, auth=self.auth, timeout=self.timeout)

        if request.status_code == 200:
            return True
169779
@Override
	public void removeByG_C_O(long groupId, long commerceAccountId,
		int orderStatus) {
		for (CommerceOrder commerceOrder : findByG_C_O(groupId,
				commerceAccountId, orderStatus, QueryUtil.ALL_POS,
				QueryUtil.ALL_POS, null)) {
			remove(commerceOrder);
		}
	}
413658
@Override
	public void removeByG_E(long groupId, boolean enabled) {
		for (CommerceNotificationTemplate commerceNotificationTemplate : findByG_E(
				groupId, enabled, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceNotificationTemplate);
		}
	}
925915
def remove_from_group
      new_group_owner = group_members.earliest
      if new_group_owner.present?
        new_group_owner.update(group_owner_id: nil)
        group_members.update_all(group_owner_id: new_group_owner.id)
      end
      new_group_owner
    end
405417
@Override
	public void removeByGroupId(long groupId) {
		for (CommerceNotificationTemplate commerceNotificationTemplate : findByGroupId(
				groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceNotificationTemplate);
		}
	}
1069188
def remove_from_group(name, items)
      group = group_items(name)

      items.each do |item|
        utf8_item = item.encode("UTF-8")
        deallocate(utf8_item)
        group.delete(utf8_item)
      end

      replace_group(name, group)

      return items
    end
1231711
def revoke(perm, group_list = [])
      validate_usergroup_list(group_list)
      api.post(['revoke', perm].uri_concat, group_list, 'application/json')
    end
1013399
@Override
	public CommerceOrder removeByUUID_G(String uuid, long groupId)
		throws NoSuchOrderException {
		CommerceOrder commerceOrder = findByUUID_G(uuid, groupId);

		return remove(commerceOrder);
	}
1077240
def _delUserFromGroup(self, username, group="Clients"):
        
        portal_groups = api.portal.get_tool("portal_groups")
        group = portal_groups.getGroupById(group)
        group.removeMember(username)
927780
@Override
	public void removeByGroupId(long groupId) {
		for (CommerceShipment commerceShipment : findByGroupId(groupId,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceShipment);
		}
	}
1158280
@Override
	public void removeByG_A(long groupId, boolean active) {
		for (CommerceWarehouse commerceWarehouse : findByG_A(groupId, active,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceWarehouse);
		}
	}
975362
def destroy
      membership = current_user.memberships.find_by(id: params[:id])
      group = membership.group

      Group::Services::Leave.new(group: group, person: current_user).call

      redirect_to group
    end
27012
def del_group(self):
        """"""
        idx = self.tabs.currentIndex()
        self.tabs.removeTab(idx)

        self.apply()
209697
@Override
	public void removeByGroupId(long groupId) {
		for (CommerceShippingMethod commerceShippingMethod : findByGroupId(
				groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceShippingMethod);
		}
	}
230422
def remove_update_callback(self, group, name=None, cb=None):
        """"""
        if not cb:
            return

        if not name:
            if group in self.group_update_callbacks:
                self.group_update_callbacks[group].remove_callback(cb)
        else:
            paramname = '{}.{}'.format(group, name)
            if paramname in self.param_update_callbacks:
                self.param_update_callbacks[paramname].remove_callback(cb)