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

Deleting Tasks in Batches

Function

Document parsing API, batch task deletion

URI

DELETE /v1/koosearch/doc-search/tasks

Request Parameters

Table 1 Request body parameters

Parameter

Mandatory

Type

Description

task_ids

Yes

Array of strings

ID of the task to be deleted

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

total

Integer

Number of records to be deleted

deleted

Integer

Number of deleted records

Status code: 400

Table 3 Response body parameters

Parameter

Type

Description

error_code

String

Error Code

error_msg

String

Error description

Status code: 401

Table 4 Response body parameters

Parameter

Type

Description

error_code

String

Error Code

error_msg

String

Error description

Status code: 500

Table 5 Response body parameters

Parameter

Type

Description

error_code

String

Error Code

error_msg

String

Error description

Example Requests

None

Example Responses

Status code: 200

Task deletion result

{
  "total" : 2,
  "deleted" : 1
}

Status Codes

Status Code

Description

200

Task deletion result

400

Invalid request parameters

401

Authentication error

500

Internal error

Error Codes

See Error Codes.