'Deletes a consistency group.'

def delete_consistencygroup(self, context, group, volumes):

    cg_name = group.id
    model_update = {}
    volumes_model_update = []
    model_update['status'] = group.status
    LOG.info('Start    to    delete    consistency    group:    %(cg_name)s', {'cg_name': cg_name})
    self.client.delete_consistency_group(cg_name)
    for volume in volumes:
        try:
            self.client.delete_lun(volume.name)
            volumes_model_update.append({'id': volume.id, 'status': fields.ConsistencyGroupStatus.DELETED})
        except storops_ex.VNXDeleteLunError:
            volumes_model_update.append({'id': volume.id, 'status': fields.ConsistencyGroupStatus.ERROR_DELETING})
    return (model_update, volumes_model_update)
