---
title: "Delete a task document"
method: DELETE
path: "/tasks/{taskId}/documents/{id}"
tags: ["Tasks"]
---

# Delete a task document

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

Unlinks the specified document from the specified task.

## Path parameters

- `taskId` string, uuid, required
- `id` string, uuid, required

## Response `202`

When request is accepted. Returns a hypermedia 'Link' object of the task document to be deleted.

- Link
  - `id` string, nullable
  - `href` string, nullable
  - `relation` string, nullable
  - `method` string, nullable

## Other responses

- `403` — When task with specified id is not associated with authenticated client.
- `404` — When task with specified task id and/or document id does not exist.

---

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