---
title: "Delete a file from a knowledge folder"
method: DELETE
path: "/knowledge/{folderId}/{attachmentId}"
---

# Delete a file from a knowledge folder

`DELETE /knowledge/{folderId}/{attachmentId}`

## Request

- Base URL: `https://api.langdock.com`
- URL: `https://api.langdock.com/knowledge/{folderId}/{attachmentId}`
- Auth: HTTP bearer

## Path parameters

- `folderId` string, required
- `attachmentId` string, required

## Response `200`

Attachment deleted successfully

## Changes

- **2026-11-03** `c62bf90b4013`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/langdock/apis/langdock-api/changes/knowledge/:folderId/:attachmentId/delete.md)

---

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