'Delete consistency group and volumes in it.'

@proxy.logger
def delete_group(self, ctxt, group, volumes):

    grp = Group(group)
    if grp.consisgroup_snapshot_enabled:
        luns = [Lun(volume) for volume in volumes]
        return self._delete_group_with_lock(group, luns)
    elif grp.consisgroup_replication_enabled:
        self._assert((not grp.failed_over), ('Group    %s    has    been    failed    over,    it    does    not    support    to    delete    it' % grp.id))
        luns = [Lun(volume) for volume in volumes]
        for lun in luns:
            self._replication.delete_replica(lun)
        return self._delete_group_with_lock(group, luns)
    else:
        raise NotImplementedError()
