---
title: "Deletes a document from a knowledge base"
method: DELETE
path: "/apiops/projects/{projectName}/knowledge-bases/{kbName}/documents/{documentId}/"
tags: ["KnowledgeBase"]
---

# Deletes a document from a knowledge base

`DELETE /apiops/projects/{projectName}/knowledge-bases/{kbName}/documents/{documentId}/`

## Request

- Base URL: `http://167.86.118.166:32080`
- URL: `http://167.86.118.166:32080/apiops/projects/{projectName}/knowledge-bases/{kbName}/documents/{documentId}/`
- Auth: none declared
- TypeScript: <https://skmtc.dev/apinizer/apis/apinizer-management-apis/docs/apiops/projects/:projectName/knowledge-bases/:kbName/documents/:documentId/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes a document (by id) from the named knowledge base and purges its VectorDB chunks.

## Path parameters

- `projectName` string, required
- `kbName` string, required
- `documentId` string, required

## Response `200`

successful operation!

- ApiOpsResponseSuccess
  - `status` 'SUCCESS' | 'FAILURE'
  - `resultMessage` string
  - `resultList` string[]
  - `resultCount` integer
  - `deploymentResult` DeploymentResult
    - `envName` string
    - `podName` string
    - `podIp` string
    - `success` boolean
    - `detail` string
    - `responseTime` integer
    - `detailList` unknown[]
      - unknown
    - `firstFromApiResultList` unknown
  - `unresolvedReferences` string[]
  - `advisories` ApiOpsAdvisoryDTO[]
    - `level` string
    - `key` string
    - `params` object

## Other responses

- `401`: not authorized for this operation!
- `500`: internal error!

## Changes

- **2026-08-11** `9ae232e55479`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/apinizer/apis/apinizer-management-apis/changes/apiops/projects/:projectName/knowledge-bases/:kbName/documents/:documentId/delete.md)

---

[API](https://skmtc.dev/apinizer/apis/apinizer-management-apis.md) - [All operations](https://skmtc.dev/apinizer/apis/apinizer-management-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/apinizer/apis/apinizer-management-apis/revisions/e083046b24cd?raw)
