Updated on 2025-03-25 GMT+08:00

Deleting Pipelines in Batches

Function

This API is used to delete pipelines in batches.

Calling Method

For details, see Calling APIs.

URI

POST /v5/{project_id}/api/pipelines/batch-delete

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Parameter description:

CodeArts project ID.

Constraints:

N/A.

Value Range:

The value contains 32 characters.

Default value:

N/A.

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

pipeline_ids

Yes

Array of strings

Pipeline ID list.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

result

Array of result objects

Response body for deleting pipelines in batches.

Table 4 result

Parameter

Type

Description

pipeline_id

String

Pipeline ID.

pipeline_name

String

Pipeline name.

status

String

Deletion status.

reason

String

Causes of deletion failure.

Example Requests

POST https://{endpoint}}/v5/db8d07265e24426598b3eb03a7818972/api/pipelines/batch-delete

{
  "pipeline_ids" : [ "d02cd56c8bfa406d96286454c87bd85a", "32d334890ff74d16b3f51df386f16407" ]
}

Example Responses

Status code: 200

Response body for deleting pipelines in batches.

{
  "result" : [ {
    "pipeline_id" : "d02cd56c8bfa406d96286454c87bd85a",
    "pipeline_name" : "Delete 2",
    "status" : "DELETE_SUCCESS",
    "reason" : null
  }, {
    "pipeline_id" : "32d334890ff74d16b3f51df386f16407",
    "pipeline_name" : "Delete 111",
    "status" : "DELETE_SUCCESS",
    "reason" : null
  } ]
}

Status Codes

Status Code

Description

200

Response body for deleting pipelines in batches.

Error Codes

See Error Codes.