'Deletes a group and volumes in the group.'

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

    model_update = {'status': group.status}
    volume_model_updates = []
    for volume_ref in volumes:
        volume_model_update = {'id': volume_ref.id}
        try:
            self.driver.remove_export(context, volume_ref)
            self.driver.delete_volume(volume_ref)
            volume_model_update['status'] = 'deleted'
        except exception.VolumeIsBusy:
            volume_model_update['status'] = 'available'
        except Exception:
            volume_model_update['status'] = 'error'
            model_update['status'] = fields.GroupStatus.ERROR
        volume_model_updates.append(volume_model_update)
    return (model_update, volume_model_updates)
