---
title: "Detach a task from an iteration"
method: DELETE
path: "/iterations/{id}/tasks/{taskId}"
tags: ["Planning"]
---

# Detach a task from an iteration

`DELETE /iterations/{id}/tasks/{taskId}`

## Request

- Base URL: `https://app.pencil.ink/api/v1`
- URL: `https://app.pencil.ink/api/v1/iterations/{id}/tasks/{taskId}`
- Auth: HTTP bearer

## Response `200`

The resource.

- object
  - `data` DurableObject: Stable public shape for newly exposed durable objects. Internal workspace ids, deletion markers, sync data, storage credentials, and secrets are omitted.
    - `id` string
    - `displayId` union
      - string
      - number
    - `name` string
    - `title` string
    - `status` string
    - `kind` 'requirement' | 'user_story': Requirement subtype. Legacy rows are returned as requirement.
    - `personaId` string, nullable
    - `storyActor` string, nullable
    - `storyGoal` string, nullable
    - `storyBenefit` string, nullable
    - `acceptanceCriteria` string[]
    - `storySentence` string, nullable
    - `createdAt` integer, nullable: Epoch ms.
    - `updatedAt` integer, nullable: Epoch ms.

## Other responses

- `403`: The key is read-only and may not write (`forbidden`).
- `404`: Resource not found in this org (`not_found`).

---

[API](https://skmtc.dev/pencil/apis/pencil-public-api.md) · [All operations](https://skmtc.dev/pencil/apis/pencil-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pencil/apis/pencil-public-api/revisions/2b842698b76d?raw)
