---
title: "Delete a subtask"
method: DELETE
path: "/tasks/{taskId}/subtasks/{id}"
tags: ["Tasks"]
---

# Delete a subtask

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

Deletes a specified subtask of a 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 subtask to be deleted.

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

## Other responses

- `400` — Bad Request
- `403` — When subtask with specified id is not associated with authenticated client.
- `404` — When subtask with specified 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/934aec02cc30/schema)
