---
title: "Delete document"
method: DELETE
path: "/knowledge-bases/documents/{documentId}"
tags: ["Knowledge Bases"]
---

# Delete document

`DELETE /knowledge-bases/documents/{documentId}`

## Request

- Base URL: `https://api.telvana.com`
- URL: `https://api.telvana.com/knowledge-bases/documents/{documentId}`
- Auth: API key in header `x-api-key`

Delete a document from a knowledge base. This removes the document from the database, S3 storage, and deletes its vector embeddings from Qdrant.

## Path parameters

- `documentId` string, required

## Response `200`

Document deleted successfully

- object
  - `data` unknown
  - `message` string

## Other responses

- `401`: Unauthorized
- `403`: Forbidden - Document belongs to another workspace
- `404`: Document not found

---

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