Updated on 2026-04-10 GMT+08:00

Deleting a Pipeline Environment

Function

This API is used to delete a pipeline environment.

URI

DELETE /cpepipeline/v2/environments/{environment_id}

Table 1 Path parameter

Parameter

Mandatory

Type

Description

environment_id

Yes

String

Build job instance ID. See Creating a Pipeline Environment.

Request

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

Content-Type

Yes

String

Message body type (format). Default value: application/json;charset=utf8.

X-Auth-Token

Yes

String

API calling can be authenticated using a token or AK/SK. If you use a token, this parameter is mandatory and must be set to the token. For details about how to obtain a token, see Obtaining a User Token.

Example Request

None

Example Response

None

Status Codes

Status Code

Description

200

OK

400

Bad Request

404

Not Found

500

Internal Server Error

Error Codes

See ServiceStage Error Codes.