---
title: "Remove an attachment from a conversation"
method: DELETE
path: "/api/chat/attachments/conversation/{conversationId}/{attachmentId}"
tags: ["chat"]
---

# Remove an attachment from a conversation

`DELETE /api/chat/attachments/conversation/{conversationId}/{attachmentId}`

## Request

- Base URL: `https://localhost:8080`
- URL: `https://localhost:8080/api/chat/attachments/conversation/{conversationId}/{attachmentId}`
- Auth: none declared

## Path parameters

- `conversationId` string, required
- `attachmentId` string, required

## Response `200`

Attachment unlinked

## Other responses

- `401`: Sign-in required
- `404`: Attachment not owned by user

---

[API](https://skmtc.dev/opencase/apis/opencase-backend-api.md) · [All operations](https://skmtc.dev/opencase/apis/opencase-backend-api/llms.txt) · [OpenAPI document](https://skmtc.dev/opencase/apis/opencase-backend-api/revisions/c66ef2d8dc00?raw)
