All Products
Search
Document Center

ApsaraDB for MyBase:DeleteDedicatedHostGroup

Last Updated:Mar 30, 2026

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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.