Deletes a dedicated cluster.

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 parameters

Parameter Type Required Example Description
Action String No DeleteDedicatedHostGroup

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

DedicatedHostGroupId String Yes dhg-h5i4p331f509****

The ID of the dedicated cluster. You can call the DescribeDedicatedHostGroups operation to query the ID of the dedicated cluster.

RegionId String Yes cn-hangzhou

The region ID of the dedicated cluster. You can call the DescribeRegions operation to query the region ID.

Response parameters

Parameter Type Example Description
RequestId String D6E068C3-25BC-455A-85FE-45F0B22E****

The ID of the request.

Examples

Sample requests

http(s)://cddc.aliyuncs.com/?Action=DeleteDedicatedHostGroup
&DedicatedHostGroupId=dhg-h5i4p331f509****
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<DeleteDedicatedHostGroupReponse>
  <RequestId>D6E068C3-25BC-455A-85FE-45F0B22E****</RequestId>
</DeleteDedicatedHostGroupReponse>

JSON format

{"RequestId":"D6E068C3-25BC-455A-85FE-45F0B22E****"}

Error codes

HttpCode Error code Error message Description
400 Custins.Exist The cluster contains an instance and cannot be deleted. The error message returned because the specified dedicated cluster contains an instance and cannot be deleted.

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