---
title: "Delete a knowledge document"
method: DELETE
path: "/api/v1/topics/{ref}/documents/{id}"
---

# Delete a knowledge document

`DELETE /api/v1/topics/{ref}/documents/{id}`

## Request

- Base URL: `https://myagentda.com`
- URL: `https://myagentda.com/api/v1/topics/{ref}/documents/{id}`
- Auth: API key in header `Authorization`

Deletes a document. Topic admin (creator) only; the deletion stays in the topic history.

## Path parameters

- `ref` string, required
- `id` string, required

## Response `200`

The document was deleted.

- object: Deletion result.
  - `deleted` string: Title of the deleted document.

## Other responses

- `401`: The access token is missing or invalid.
- `403`: The caller's role does not allow this action.
- `404`: Not found — or not visible to the caller (no existence leak).

---

[API](https://skmtc.dev/myagentda/apis/agentda.md) · [All operations](https://skmtc.dev/myagentda/apis/agentda/llms.txt) · [OpenAPI document](https://skmtc.dev/myagentda/apis/agentda/revisions/66a449ab49dc?raw)
