All Products
Search
Document Center

Tablestore:Delete a knowledge base

Last Updated:Sep 24, 2026

Use the DeleteKnowledgeBase operation to delete a specified knowledge base and all Document and Chunk data under it. This operation is irreversible. Deleting a knowledge base also deletes all Document and Chunk data under it.

Prerequisites

  • An AgentStorage instance has been created and is in the normal state, and the instance endpoint and instance name have been obtained.

  • An API Key has been created.

  • Confirm that the data under the knowledge base can be deleted. The operation is irreversible.

Request parameters

Parameter

Type

Description

knowledgeBaseName

string

The name of the knowledge base. (Required)

Request example

When you use API Key authentication, pass the instance name and API Key through the x-ots-instancename and x-ots-apikey request headers.

curl -X POST https://<endpoint>/DeleteKnowledgeBase \
  -H "x-ots-instancename: <instance-name>" \
  -H "x-ots-apikey: <your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{"knowledgeBaseName": "product_docs_kb"}'

Response

{"code":"SUCCESS","data":{},"message":"succeed"}