---
title: "DELETE Delete task attachment"
description: "Delete a specific attachment from a task"
last_updated: "2026-05-06T07:33:54.711357+00:00"
canonical_url: "https://www.doc0.dev/docs/49c89830-117b-4def-8edc-b5bcc50766e0/api/tasks/taskscontroller-deletetaskattachment"
---

<APIEndpoint
  method={"DELETE"}
  path={"/v1/tasks/:taskId/attachments/:attachmentId"}
  summary={"Delete task attachment"}
  description={"Delete a specific attachment from a task"}
  deprecated={false}
  baseUrl={""}
/>

## Parameters

<APIParameters parameters={[{"name":"X-Organization-Id","in":"header","required":false,"description":"Organization ID (required for session auth, optional for API key auth)","schema":{"type":"string"}},{"name":"taskId","in":"path","required":true,"description":"Unique task identifier","schema":{"type":"string"}},{"name":"attachmentId","in":"path","required":true,"description":"Unique attachment identifier","schema":{"type":"string"}}]} />

## Responses

<APIResponse
  statusCode={"200"}
  description={"Attachment deleted successfully"}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

<APIResponse
  statusCode={"404"}
  description={"Task or attachment not found"}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

<APIResponse
  statusCode={"401"}
  description={"Unauthorized - Invalid authentication"}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

## Try It

<APIPlayground
  method={"DELETE"}
  path={"/v1/tasks/:taskId/attachments/:attachmentId"}
  parameters={[{"name":"X-Organization-Id","in":"header","required":false,"description":"Organization ID (required for session auth, optional for API key auth)","schema":{"type":"string"}},{"name":"taskId","in":"path","required":true,"description":"Unique task identifier","schema":{"type":"string"}},{"name":"attachmentId","in":"path","required":true,"description":"Unique attachment identifier","schema":{"type":"string"}}]}
  baseUrl={""}
/>


## Sitemap

See the full [sitemap](https://www.doc0.dev/docs/49c89830-117b-4def-8edc-b5bcc50766e0/llms.txt) for all pages in this wiki.
