---
title: "Delete task relation"
method: DELETE
path: "/task-relation/{id}"
tags: ["Task Relations"]
---

# Delete task relation

`DELETE /task-relation/{id}`

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

## Path parameters

- `id` string, required

## Response `200`

The deleted relation

- TaskRelation
  - `id` string, required
  - `sourceTaskId` string, required
  - `targetTaskId` string, required
  - `relationType` string, required — How the two tasks relate: `subtask`, `blocks`, or `related`.
  - `createdAt` string, date-time, required

## Other responses

- `401` — Missing or invalid credentials
- `403` — No workspace access, or missing task:update permission
- `404` — Task relation not found, or its source task is gone

## Changes

- **2026-08-24** `08bbb5bedb5d` — 3 info
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`
  - added the non-success response with the status `404`
- **2026-07-11** `32cece1ebe43` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/usekaneo/apis/kaneo-api/changes/task-relation/:id/delete.md)

---

[API](https://skmtc.dev/usekaneo/apis/kaneo-api.md) · [All operations](https://skmtc.dev/usekaneo/apis/kaneo-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/usekaneo/kaneo-api/revisions/9d1da42c10ce/schema)
