'Delete snapshot of a consistency group of GPFS volumes.'

def _delete_cgsnapshot(self, context, cgsnapshot, snapshots):

    model_update = {'status': fields.GroupStatus.DELETED}
    snapshots_model_update = []
    try:
        for snapshot in snapshots:
            self.delete_snapshot(snapshot)
    except exception.VolumeBackendAPIException as err:
        model_update['status'] = fields.GroupStatus.ERROR_DELETING
        LOG.error('Failed    to    delete    the    snapshot    %(snap)s    of    CGSnapshot.    Exception:    %(exception)s.', {'snap': snapshot.name, 'exception': err})
    for snapshot in snapshots:
        snapshots_model_update.append({'id': snapshot.id, 'status': model_update['status']})
    return (model_update, snapshots_model_update)
