Updated on 2025-08-13 GMT+08:00

Deleting FAQ Files Imported in Batches

Function

This API is used to delete a specified FAQ file.

URI

DELETE /v1/koosearch/repos/{repo_id}/faqs/files/{file_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

repo_id

Yes

String

Knowledge base ID. The value is a string of 1 to 64 characters and can contain only digits, letters, hyphens (-), and underscores (_).

How to obtain:

Log in to the KooSearch experience platform. In the navigation tree on the left, choose Knowledge Bases to view knowledge base IDs. Each knowledge base has a unique ID stored in the vector database.

file_id

Yes

String

File ID. The value contains 1 to 64 characters, including only digits, letters, hyphens (-), and underscores (_).

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Parameter description:

Token used for API authentication. For how to obtain the token, see section 3.2 "Authentication."

Constraints:

N/A.

Response Parameters

Status code: 400

Table 3 Response body parameters

Parameter

Type

Description

error_code

String

Error Code

error_msg

String

Error description

Status code: 500

Table 4 Response body parameters

Parameter

Type

Description

error_code

String

Error Code

error_msg

String

Error description

Example Requests

DELETE https://{endpoint}/v1/koosearch/repos/e8196714-3e6b-454e-8c23-61baff601ec9/faqs/files/6e9abdb7-4626-492d-9f18-abad3b95572d

Example Responses

None

Status Codes

Status Code

Description

200

Deleted.

400

Incorrect request body parameter

500

Internal error

Error Codes

See Error Codes.