---
title: "Remove an attachment from a session or cancel its in-progress processing."
method: DELETE
path: "/v1/attachments/{attachment_id}"
tags: ["v1", "mcp", "attachments"]
---

# Remove an attachment from a session or cancel its in-progress processing.

`DELETE /v1/attachments/{attachment_id}`

## Request

- Base URL: `https://api.superdocs.app`
- URL: `https://api.superdocs.app/v1/attachments/{attachment_id}`
- Auth: HTTP bearer

Removes the attachment from the session; the AI will no longer reference it in subsequent chat turns. If processing is still in progress, also cancels the underlying job. Use to free up context, remove sensitive files mid-session, or replace a stale reference document. The attachment_id can be either the final attachment ID or the job ID (during processing).

## Path parameters

- `attachment_id` string, required

## Query parameters

- `session_id` string, required

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/superdocs/apis/universal-document-ai-api.md) · [All operations](https://skmtc.dev/superdocs/apis/universal-document-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/superdocs/apis/universal-document-ai-api/revisions/37d03122940b?raw)
