'Deletes a Task or list of Tasks in this Queue.
When multiple tasks are specified, an exception will be raised if any
individual task fails to be deleted. Check the task.was_deleted property.
Task name is the only task attribute used to select tasks for deletion. If
there is any task with was_deleted property set to True, or without a task
name, a BadTaskStateError will be raised immediately.
Args:
task: A Task instance or a list of Task instances that will be deleted
from the Queue.
Returns:
The Task or list of tasks passed into this call.
Raises:
BadTaskStateError: if the Task(s) to be deleted do not have task names or
have already been deleted.
DuplicateTaskNameError: if a Task is repeated in the request.
Error-subclass on application errors.'

def delete_tasks(self, task):

    return self.delete_tasks_async(task).get_result()
