I have a scenario, where I need to delete Cloud tasks. I create the tasks with a custom name/id. Under some circumstances I then I check if that task is there, if it is I delete it.
client.getTask(fullTaskName)
client.deleteTask(fullTaskName)