'delete_snapshot'

def delete_snapshot(self, snapshot):

    volume_name = snapshot.get('volume_id')
    snapshot_id = snapshot.get('id')
    provider_id = snapshot.get('provider_id')
    LOG.debug('Deleting    snapshot    %(snap)s    from    volume    %(vol)s', {'snap': snapshot_id, 'vol': volume_name})
    with self._client.open_connection() as api:
        scvolume = api.find_volume(volume_name, provider_id)
        if (scvolume and api.delete_replay(scvolume, snapshot_id)):
            return
    snapshot['status'] = fields.SnapshotStatus.ERROR_DELETING
    msg = (_('Failed    to    delete    snapshot    %s') % snapshot_id)
    raise exception.VolumeBackendAPIException(data=msg)
