'Deletes a snapshot.'

@debugger
def delete_snapshot(self, snapshot):

    params = list()
    (pool, project, volume_name) = self._get_pool_project_volume_name(snapshot['volume'])
    params.append(('%s/%s/%s/%s@%s%s' % (pool, TEGILE_LOCAL_CONTAINER_NAME, project, volume_name, self.SNAPSHOT_PREFIX, snapshot['name'])))
    params.append(False)
    self._api_executor.send_api_request('deleteVolumeSnapshot', params)
