---
title: "Remove a task relation"
method: DELETE
path: "/tasks/{taskID}/relations/{relationKind}/{otherTaskID}"
tags: ["task"]
---

# Remove a task relation

`DELETE /tasks/{taskID}/relations/{relationKind}/{otherTaskID}`

## Path parameters

- `taskID` integer, required
- `relationKind` string, required
- `otherTaskID` integer, required

## Request body

- ModelsTaskRelation
  - `created` string — A timestamp when this label was created. You cannot change this value.
  - `created_by` UserUser
    - `bot_owner_id` integer — BotOwnerID is the ID of the owning (human) user if this user is a bot. A non-zero value means this user is a bot and cannot authenticate via password.
    - `created` string — A timestamp when this task was created. You cannot change this value.
    - `email` string — The user's email address.
    - `id` integer — The unique, numeric id of this user.
    - `name` string — The full name of the user.
    - `updated` string — A timestamp when this task was last updated. You cannot change this value.
    - `username` string — The username of the user. Is always unique.
  - `other_task_id` integer — The ID of the other task, the task which is being related.
  - `relation_kind` 'unknown' | 'subtask' | 'parenttask' | 'related' | 'duplicateof' | 'duplicates' | 'blocking' | 'blocked' | 'precedes' | 'follows' | 'copiedfrom' | 'copiedto'
  - `task_id` integer — The ID of the "base" task, the task which has a relation to another.

## Response `200`

The task relation was successfully deleted.

- ModelsMessage
  - `message` string — A standard message.

## Other responses

- `400` — Invalid task relation object provided.
- `404` — The task relation was not found.
- `500` — Internal error

---

[API](https://skmtc.net/go-vikunja/apis/vikunja-api.md) · [All operations](https://skmtc.net/go-vikunja/apis/vikunja-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/go-vikunja/vikunja-api/revisions/feb3f68bbdf1/schema)
