---
title: "Delete a subtask attachment"
method: DELETE
path: "/v1/tasks/{taskId}/subtasks/{subtaskId}/attachments/{attachmentId}"
tags: ["Task Attachments"]
---

# Delete a subtask attachment

`DELETE /v1/tasks/{taskId}/subtasks/{subtaskId}/attachments/{attachmentId}`

Delete the attachment and the stored file. This cannot be undone.

## Path parameters

- `taskId` integer, required
- `subtaskId` integer, required
- `attachmentId` integer, required

## Headers

- `X-Org-Id` integer, required

## Response `204`

Attachment deleted successfully

---

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