public function deleteTask($taskId)
    {
        if ($taskId instanceof Tasks) {
            $taskId = $taskId->id;
        }

        $this->service->tasks->delete($this->tasklist, $taskId);
    }
public function deleteTask($taskId)
    {
        if ($taskId instanceof Tasks) {
            $taskId = $taskId->id;
        }

        $this->service->tasks->delete($this->tasklist, $taskId);
    }
public function deleteTask ( $ taskId ) { if ( $ taskId instanceof Tasks ) { $ taskId = $ taskId -> id ; } $ this -> service -> tasks -> delete ( $ this -> tasklist , $ taskId ) ; }
Delete a task

@param string|\BobFridley\GoogleTasks\Tasks $taskId

@link https://developers.google.com/google-apps/tasks/v1/reference/tasks/delete
Delete a task