---
title: "Changes to Delete Document Api"
method: DELETE
path: "/api/kb/collections/{collection_name}/documents/{filename}"
---

# Changes to Delete Document Api

`DELETE /api/kb/collections/{collection_name}/documents/{filename}`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 1 of 4 revisions.

- **2026-05-01** `c9eb29ec9a1b` — 2 info

## Changes

- **2026-05-01** `c9eb29ec9a1b` — 2 info
  - added the new optional `query` request parameter `doc_id`
  - added the new optional `query` request parameter `file_id`

---

[Operation](https://skmtc.dev/xorbitsai/apis/xagent/docs/api/kb/collections/:collection_name/documents/:filename/delete.md) · [API](https://skmtc.dev/xorbitsai/apis/xagent.md) · [Page](https://skmtc.dev/xorbitsai/apis/xagent/changes/api/kb/collections/:collection_name/documents/:filename/delete)
