delete_file

Function

Deletes uploaded documents from a knowledge base. This operation can only be performed by the knowledge base administrator.

Prototype

def delete_file(doc_name)

Parameters

Parameter

Data Type

Required/Optional

Description

doc_name

String

Required

Name of the document to be deleted. The document must exist. The length range is [1, 1024].