---
title: "Delete a task file attachment"
method: DELETE
path: "/api/fs/tasks/{taskId}/files/{attachmentId}"
tags: ["FS"]
---

# Delete a task file attachment

`DELETE /api/fs/tasks/{taskId}/files/{attachmentId}`

## Path parameters

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

## Response `204`

Attachment deleted

## Other responses

- `403` — Caller cannot mutate this task
- `404` — Task or attachment not found

---

[API](https://skmtc.net/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.net/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/versions/ef761849166b/schema)
