Remove a reader group
359921
def removereadergroup(self, group):
        """"""
        if not isinstance(group, type("")):
            raise BadReaderGroupException
        self.remove(group)
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)
950985
def remove_group(self, group):
        
        if not isinstance(group, Group):
            raise TypeError("group must be Group")
        if group not in self.groups:
            raise ValueError("Group doesn't exist / is not bound to this database.")
        
        #save num entries and children before removal to avoid for loop problems
        num_entries = len(group.entries)
        for i in xrange(num_entries):
            self.remove_entry(group.entries[0])

        # Recurse down to remove sub-groups
        num_children = len(group.children)
        for i in xrange(num_children): # We may need to copy this to avoid CME (see below)
            self.remove_group(group.children[0])
        
        # Finally remove group from the parent's list.
        group.parent.children.remove(group) # Concurrent modification exception? Parent in recursive stack is iterating ...
        self.groups.remove(group)
1278218
@Override
	public void removeByGroupId(long groupId) {
		for (CommerceUserSegmentEntry commerceUserSegmentEntry : findByGroupId(
				groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceUserSegmentEntry);
		}
	}
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
603459
def group_remove(groupname,
                 user=None,
                 host=None,
                 port=None,
                 maintenance_db=None,
                 password=None,
                 runas=None):
    '''
    
    '''
    return _role_remove(groupname,
                        user=user,
                        host=host,
                        port=port,
                        maintenance_db=maintenance_db,
                        password=password,
                        runas=runas)
48898
def remove_user_from_group(self, group_name, user_name):
        
        params = {'GroupName' : group_name,
                  'UserName' : user_name}
        return self.get_response('RemoveUserFromGroup', params)
721016
@Override
	public void removeByG_ST(long groupId, int status) {
		for (CPInstance cpInstance : findByG_ST(groupId, status,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpInstance);
		}
	}
353131
def delete(name, **kwargs):
    '''
    
    '''
    if info(name):
        comp_obj = _get_computer_object()
        try:
            comp_obj.Delete('group', name)
            log.info('Successfully removed group %s', name)
        except pywintypes.com_error as exc:
            msg = 'Failed to remove group {0}. {1}'.format(
                name, win32api.FormatMessage(exc.excepinfo[5]))
            log.error(msg)
            return False
    else:
        log.warning('The group %s does not exists.', name)
        return False

    return True
32512
def remove_users_from_group(id, user_list = [])
      wf_usergroup_id?(id)
      validate_user_list(user_list)
      api.post([id, 'removeUsers'].uri_concat, user_list,
               'application/json')
    end
1147468
def remove_from_group(self, group, user):
        
        data = {'group': group, 'user': user}
        return self.post('removeUserFromGroup', data)
1355968
def _delete_device_from_device_group(self, device):
        '''
        '''

        device_name = get_device_info(device).name
        dg = pollster(self._get_device_group)(device)
        device_to_remove = dg.devices_s.devices.load(
            name=device_name, partition=self.partition
        )
        device_to_remove.delete()
482284
@Override
	public void removeByG_U(long groupId, long userId) {
		for (CommerceWishList commerceWishList : findByG_U(groupId, userId,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceWishList);
		}
	}
822438
def deleteSettings(self, groupName=None):
        
        groupName = groupName if groupName else self.settingsGroupName
        settings = QtCore.QSettings()
        logger.info("Deleting {} from: {}".format(groupName, settings.fileName()))
        removeSettingsGroup(groupName)
268839
@Override
	public void removeByGroupId(long groupId) {
		for (CPInstance cpInstance : findByGroupId(groupId, QueryUtil.ALL_POS,
				QueryUtil.ALL_POS, null)) {
			remove(cpInstance);
		}
	}
942900
def remove_group(id):
    
    acl_url = urljoin(_acl_url(), 'groups/{}'.format(id))
    try:
        r = http.delete(acl_url)
        print(r.status_code)
    except DCOSHTTPException as e:
        if e.response.status_code != 400:
            raise
171050
@Override
	public void removeByG_NotST(long groupId, int status) {
		for (CPInstance cpInstance : findByG_NotST(groupId, status,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpInstance);
		}
	}