> ## Documentation Index
> Fetch the complete documentation index at: https://kaneo.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete task relation

> Remove a link between two tasks. Returns the deleted relation.



## OpenAPI

````yaml /openapi.json delete /task-relation/{id}
openapi: 3.1.0
info:
  title: Kaneo API
  version: 1.0.0
  description: Kaneo Project Management API - Manage projects, tasks, labels, and more
servers:
  - url: https://cloud.kaneo.app/api
    description: Kaneo API Server
security:
  - bearerAuth: []
paths:
  /task-relation/{id}:
    delete:
      tags:
        - Task Relations
      summary: Delete task relation
      description: Remove a link between two tasks. Returns the deleted relation.
      operationId: deleteTaskRelation
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
      responses:
        '200':
          description: The deleted relation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskRelation'
        '401':
          description: Missing or invalid credentials
        '403':
          description: No workspace access, or missing task:update permission
          content:
            text/plain:
              schema:
                type: string
        '404':
          description: Task relation not found, or its source task is gone
          content:
            text/plain:
              schema:
                type: string
components:
  schemas:
    TaskRelation:
      type: object
      properties:
        id:
          type: string
        sourceTaskId:
          type: string
        targetTaskId:
          type: string
        relationType:
          type: string
          description: 'How the two tasks relate: `subtask`, `blocks`, or `related`.'
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - sourceTaskId
        - targetTaskId
        - relationType
        - createdAt
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or session token (Bearer)

````