---
title: "Delete task attachment"
method: DELETE
path: "/v1/tasks/{taskId}/attachments/{attachmentId}"
tags: ["Tasks"]
---

# Delete task attachment

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

Delete task attachment in Comp AI. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.

## Path parameters

- `taskId` string, required
- `attachmentId` string, required

## Response `200`

Attachment deleted successfully

- object
  - `success` boolean
  - `deletedAttachmentId` string
  - `message` string

## Other responses

- `401` — Unauthorized - Invalid authentication
- `404` — Task or attachment not found

---

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