• Elastic Cloud Server

ecs
  1. Help Center
  2. Elastic Cloud Server
  3. API Reference
  4. OpenStack Nova APIs
  5. Lifecycle Management
  6. Deleting an ECS

Deleting an ECS

Function Description

This interface is used to delete an ECS.

Extension Description

In OpenStack Juno, when an ECS is deleted, all ports attached to the ECS will be deleted. In OpenStack Mitaka, when an ECS is deleted, ports that are created by users during the ECS creation will not be deleted.

This function supports both the method in the Mitaka version and the compatibility mode of the Juno version. By default, the method in the Mitaka version is used. In upgrade, the compatibility mode of the Juno version is used.

URI

DELETE /v2/{project_id}/servers/{server_id}

DELETE /v2.1/{project_id}/servers/{server_id}

Table 1 describes the parameters in the URI.
Table 1 Parameter description

Parameter

Mandatory

Description

project_id

Yes

Specifies the project ID.

server_id

Yes

Specifies the ECS ID.

Request

N/A

Response

N/A

Returned Values

See General Request Returned Values.