Use this API to delete systemgroup of given name.
974657
public static base_response delete(nitro_service client, String groupname) throws Exception {
		systemgroup deleteresource = new systemgroup();
		deleteresource.groupname = groupname;
		return deleteresource.delete_resource(client);
	}
962929
def delete_group(self, name):
        
        self.service.delete_group(
            name, self.url_prefix, self.auth, self.session,
            self.session_send_opts)
888151
@Override
    public void deleteGroup(IEntityGroup group) throws GroupsException {
        throwExceptionIfNotInternallyManaged();
        synchronizeGroupMembersOnDelete(group);
        getGroupStore().delete(group);
        if (cacheInUse()) {
            cacheRemove(group);
        }
    }
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)
1123008
def delete(config, group, force):
        """"""
        if not force:
            if not click.confirm(
                    'Confirm that you want to delete group {}'.format(group)):
                sys.exit("Deletion of {} aborted".format(group))

        client = Client()
        client.prepare_connection()
        group_api = API(client)
        group_api.delete(group)
402351
public function removeDiscGroup()
    {
        $config = \OxidEsales\Eshop\Core\Registry::getConfig();

        $groupIds = $this->_getActionIds('oxobject2discount.oxid');
        if ($config->getRequestParameter('all')) {
            $query = $this->_addFilter("delete oxobject2discount.* " . $this->_getQuery());
            \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->Execute($query);
        } elseif ($groupIds && is_array($groupIds)) {
            $groupIdsQuoted = implode(", ", \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->quoteArray($groupIds));
            $query = "delete from oxobject2discount where oxobject2discount.oxid in (" . $groupIdsQuoted . ") ";
            \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->Execute($query);
        }
    }
870803
@Override
	public void removeByGroupId(long groupId) {
		for (CPOption cpOption : findByGroupId(groupId, QueryUtil.ALL_POS,
				QueryUtil.ALL_POS, null)) {
			remove(cpOption);
		}
	}
667051
private void deleteBus(BusGroup group)
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "deleteBus", group);

    // Find the position in the list which contains the group, and remove
    // the group.

    final BusGroup[] t = _buses;
    for (int i = 0; i < _buses.length; i++)
    {
      if (_buses[i].equals(group))
      {
        _buses = new BusGroup[t.length - 1];
        if (i > 0)
          System.arraycopy(t, 0, _buses, 0, i);
        if (i < t.length - 1)
          System.arraycopy(t, i + 1, _buses, i, t.length - 1 - i);

        break;
      }
    }

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "deleteBus");
  }
1189442
def cli(env, securitygroup_id):
    """"""
    mgr = SoftLayer.NetworkManager(env.client)
    if not mgr.delete_securitygroup(securitygroup_id):
        raise exceptions.CLIAbort("Failed to delete security group")
586373
@Override
	public void removeByGroupId(long groupId) {
		for (CPOptionCategory cpOptionCategory : findByGroupId(groupId,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpOptionCategory);
		}
	}
1266639
private void remove(ThreadGroup g) {
        synchronized (this) {
            if (destroyed) {
                return;
            }
            for (int i = 0 ; i < ngroups ; i++) {
                if (groups[i] == g) {
                    ngroups -= 1;
                    System.arraycopy(groups, i + 1, groups, i, ngroups - i);
                    // Zap dangling reference to the dead group so that
                    // the garbage collector will collect it.
                    groups[ngroups] = null;
                    break;
                }
            }
            if (nthreads == 0) {
                notifyAll();
            }
            if (daemon && (nthreads == 0) &&
                (nUnstartedThreads == 0) && (ngroups == 0))
            {
                destroy();
            }
        }
    }
359921
def removereadergroup(self, group):
        """"""
        if not isinstance(group, type("")):
            raise BadReaderGroupException
        self.remove(group)
371848
public void deleteAutoScalingGroup(String autoScalingGroupName,
      boolean shouldForceDelete) {

    final AmazonAutoScaling autoScaling = getAmazonAutoScalingClient();

    final DeleteAutoScalingGroupRequest deleteLaunchConfigurationRequest = new DeleteAutoScalingGroupRequest()
        .withAutoScalingGroupName(autoScalingGroupName)
        .withForceDelete(shouldForceDelete);

    autoScaling.deleteAutoScalingGroup(deleteLaunchConfigurationRequest);

    LOGGER.info("Deleted AutoScalingGroup: " + autoScalingGroupName);
  }
916118
@Override
	public CPSpecificationOption removeByUUID_G(String uuid, long groupId)
		throws NoSuchCPSpecificationOptionException {
		CPSpecificationOption cpSpecificationOption = findByUUID_G(uuid, groupId);

		return remove(cpSpecificationOption);
	}
1280785
function deleteGroup(group) {
  if (!runningAsRoot()) return;
  if (!group) throw new Error('You must provide a group to delete');
  if (!groupExists(group)) {
    return;
  }
  const groupdelBin = _safeLocateBinary('groupdel');
  const delgroupBin = _safeLocateBinary('delgroup');

  if (isPlatform('linux')) {
    if (groupdelBin !== null) { // most modern systems
      runProgram(groupdelBin, [group]);
    } else {
      if (_isBusyboxBinary(delgroupBin)) { // busybox-based systems
        runProgram(delgroupBin, [group]);
      } else {
        throw new Error(`Don't know how to delete group ${group} on this strange linux`);
      }
    }
  } else if (isPlatform('osx')) {
    runProgram('dscl', ['.', '-delete', `/Groups/${group}`]);
  } else if (isPlatform('windows')) {
    throw new Error(`Don't know how to delete group ${group} on Windows`);
  } else {
    throw new Error(`Don't know how to delete group ${group} on the current platformp`);
  }
}
1077240
def _delUserFromGroup(self, username, group="Clients"):
        
        portal_groups = api.portal.get_tool("portal_groups")
        group = portal_groups.getGroupById(group)
        group.removeMember(username)
872676
def servicegroup_delete(sg_name, **connection_args):
    '''
    
    '''
    ret = True
    sg = _servicegroup_get(sg_name, **connection_args)
    if sg is None:
        return False
    nitro = _connect(**connection_args)
    if nitro is None:
        return False
    try:
        NSServiceGroup.delete(nitro, sg)
    except NSNitroError as error:
        log.debug('netscaler module error - NSServiceGroup.delete() failed: %s', error)
        ret = False
    _disconnect(nitro)
    return ret