public function deleteTask(int $taskId): bool
    {
        if ( ! $this->validateId($taskId)) {
            return false;
        }

        $result = $this->delete('tasks/' . $taskId);

        return 204 === $result->getStatusCode();
    }
public function deleteTask(int $taskId): bool
    {
        if ( ! $this->validateId($taskId)) {
            return false;
        }

        $result = $this->delete('tasks/' . $taskId);

        return 204 === $result->getStatusCode();
    }
public function deleteTask ( int $ taskId ) : bool { if ( ! $ this -> validateId ( $ taskId ) ) { return false ; } $ result = $ this -> delete ( 'tasks/' . $ taskId ) ; return 204 === $ result -> getStatusCode ( ) ; }
Delete a task.

@param int $taskId ID of the task.

@return bool True on success, false on failure.
Delete a task .