delete_doc_info

Function

Deletes a document record from a knowledge base. This operation can only be performed by the knowledge base administrator.

Prototype

def delete_doc_info(knowledge_name, doc_name, user_id)

Parameters

Parameter

Data Type

Required/Optional

Description

knowledge_name

String

Required

Knowledge base name. The length range is [1, 1024].

doc_name

String

Required

Document name. The length range is [1, 1024].

user_id

String

Required

User ID, which is used to distinguish different knowledge bases and must comply with the regular expression ^[a-zA-Z0-9_-]{6,64}$.

Return Value

Data Type

Description

int/None

ID of the document that is deleted from document_table. If the deletion fails, None is returned.