Deletes an Alibaba Cloud Service Mesh (ASM) instance.


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 parameters

Parameter Type Required Example Description
Action String Yes DeleteServiceMesh

The operation that you want to perform. Set the value to DeleteServiceMesh.

ServiceMeshId String Yes c08ba3fd1e6484b0f8cc1ad8fe10d****

The ID of the ASM instance.

Force Boolean No false

Specifies whether to forcibly delete the ASM instance. Valid values:

  • true: forcibly deletes the ASM instance.
  • false: does not forcibly delete the ASM instance.

Default value: false.

RetainResources String No [" lb-bp1fxvl3q8akbj6m*****", "lb-bp1hoxkolggdw0y3*****"]

A JSON string that can be parsed into a string array. You can use this JSON string to specify the IDs of the resource instances that need to be retained when the ASM instance is deleted.

Response parameters

Parameter Type Example Description
RequestId String 11fd0027-c27e-41bb-a565-75583054****

The ID of the request.


Sample requests

&RetainResources=[" lb-bp1fxvl3q8akbj6m*****", "lb-bp1hoxkolggdw0y3*****"]
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

  "RequestId" : "11fd0027-c27e-41bb-a565-75583054****"

Error codes

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