

def group_del(name):
    ret = exec_cmd(('/usr/sbin/groupdel %s' % name))
    if ((ret['returncode'] != 6) and (ret['returncode'] != 0)):
        raise ResourceException(ret['stderr'])

dataset/ETHPy150Open comodit/synapse-agent/synapse/resources/groups-plugin/unix-groups.py group_del/original