roundcubemail/program/lib/Roundcube/rcube_ldap.php
function delete_group($group_id)
    {
        $group_cache = $this->_fetch_groups();
        $del_dn      = $group_cache[$group_id]['dn'];

        if (!$this->ldap->delete_entry($del_dn)) {
            $this->set_error(self::ERROR_SAVING, 'errorsaving');
            return false;
        }

        if ($this->cache) {
            unset($group_cache[$group_id]);
            $this->cache->set('groups', $group_cache);
        }

        return true;
    }
function delete_group($group_id)
    {
        $group_cache = $this->_fetch_groups();
        $del_dn      = $group_cache[$group_id]['dn'];

        if (!$this->ldap->delete_entry($del_dn)) {
            $this->set_error(self::ERROR_SAVING, 'errorsaving');
            return false;
        }

        if ($this->cache) {
            unset($group_cache[$group_id]);
            $this->cache->set('groups', $group_cache);
        }

        return true;
    }
function delete_group ( $ group_id ) { $ group_cache = $ this -> _fetch_groups ( ) ; $ del_dn = $ group_cache [ $ group_id ] [ 'dn' ] ; if ( ! $ this -> ldap -> delete_entry ( $ del_dn ) ) { $ this -> set_error ( self :: ERROR_SAVING , 'errorsaving' ) ; return false ; } if ( $ this -> cache ) { unset ( $ group_cache [ $ group_id ] ) ; $ this -> cache -> set ( 'groups' , $ group_cache ) ; } return true ; }
Delete the given group and all linked group members

@param string Group identifier
@return boolean True on success, false if no data was changed
Delete the given group and all linked group members