Help Center/ CodeArts Deploy/ API Reference/ APIs/ Managing Environments/ Deleting an Environment from an Application
Updated on 2025-05-27 GMT+08:00

Deleting an Environment from an Application

Function

This API is used to delete an environment in an application.

Calling Method

For details, see Calling APIs.

URI

DELETE /v1/applications/{application_id}/environments/{environment_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

application_id

Yes

String

Application ID

environment_id

Yes

String

Environment ID

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

Content-Type

Yes

String

Message body type (format).

X-Auth-Token

Yes

String

User token. It can be obtained by calling an IAM API. The value of X-Subject-Token in the response header is the user token.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

status

String

Request success or failure status

id

String

Environment ID

Example Requests

https://endpoint/v1/applications/43943381f7764c52baae8e697720873f/environments/140ca97e701d4c4c93c5932d5bdb32ec

Example Responses

Status code: 200

OK: The request is successful.

{
  "status" : "success",
  "id" : "140ca97e701d4c4c93c5932d5bdb32ec"
}

Status Codes

Status Code

Description

200

OK: The request is successful.

Error Codes

See Error Codes.