code: def delete_task(self, id, client=None):
          
          client = self._require_client(client)
          task = Task(taskqueue=self, id=id)
  
          # We intentionally pass `_target_object=None` since a DELETE
          # request has no response value (whether in a standard request or
          # in a batch request).
          client.connection.api_request(method='DELETE', path=task.path, _target_object=None)
docs: Deletes a task from the current task queue.
  
          If the task isn't found (backend 404), raises a
          :class:`gcloud.exceptions.NotFound`.
  
          :type id: string
          :param id: A task name to delete.
  
          :type client: :class:`gcloud.taskqueue.client.Client` or ``NoneType``
          :param client: Optional. The client to use.  If not passed, falls back
                         to the ``client`` stored on the current taskqueue.
  
          :raises: :class:`gcloud.exceptions.NotFound`