---
title: "Delete a knowledge base document"
method: POST
path: "/v1/knowledge-base/documents/{documentId}/delete"
tags: ["Knowledge Base"]
---

# Delete a knowledge base document

`POST /v1/knowledge-base/documents/{documentId}/delete`

Delete a knowledge base document in Comp AI. Upload source documents, process them for retrieval, and manage reusable manual answers that power questionnaires and AI policy workflows.

## Path parameters

- `documentId` string, required

## Response `200`

Document deleted successfully

---

[API](https://skmtc.net/trycompai/apis/comp-ai-api.md) · [All operations](https://skmtc.net/trycompai/apis/comp-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/trycompai/comp-ai-api/revisions/726b9523fb22/schema)
