You can call the DeleteEdgeMachine operation to delete a cloud-native box.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request syntax

`DELETE /edge_machines/{edge_machineid}?force=String HTTP/1.1`

Request parameters

Table 1. Request path parameters
Parameter Type Required Example Description
edge_machineid String Yes cc0725ddf688744979cd98445f67e****

The ID of the cloud-native box.

Table 2. Request query parameters
Parameter Type Required Example Description
force String No True/False

Specifies whether to forcibly delete the cloud-native box. Valid values:

  • true: forcibly deletes the cloud-native box.
  • false does not forcibly delete the cloud-native box.

Default value: false.

Response syntax

`HTTP/1.1 200`

Response parameters

None

Sample requests

Submit the following sample request to delete a cloud-native box:

DELETE /edge_machines/[edge_machineid]?force=True/False HTTP/1.1
Host:cs.aliyuncs.com
Content-Type:application/json

Sample success responses

JSON format

HTTP/1.1 200 OK

Error codes

For a list of error codes, visit the API Error Center.