Deletes a dedicated cluster.
Operation description
Before you delete a dedicated cluster, you must delete all instances and hosts from the cluster.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DedicatedHostGroupId |
string |
Yes |
The dedicated cluster ID. You can log on to the ApsaraDB for MyBase console and go to the Dedicated Clusters page to view the dedicated cluster ID. |
dhg-h5i4p331f509**** |
| RegionId |
string |
No |
The region ID of the dedicated cluster. For more information, see Region IDs. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
D6E068C3-25BC-455A-85FE-45F0B22E1765 |
Examples
Success response
JSON format
{
"RequestId": "D6E068C3-25BC-455A-85FE-45F0B22E1765"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Host.Exist | There are hosts in usercluster, can't delete it. | |
| 400 | Custins.Exist | The cluster contains an instance and cannot be deleted. | The cluster contains an instance and cannot be deleted. |
| 404 | InvalidDedicatedHostGroup.NotFound | Specified DedicatedHostGroup does not exists. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.