全部产品
Search
文档中心

资源管理:DeleteResourceGroup - 删除资源组

更新时间:Feb 27, 2026

调用DeleteResourceGroup删除资源组。

接口说明

说明 删除资源组前,请先删除资源组中的资源。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
ResourceGroupIdstring

资源组 ID。

您可以调用 ListResourceGroups 查询资源组 ID。

rg-9gLOoK****

返回参数

名称类型描述示例值
object

返回结果

RequestIdstring

请求 ID。

1C488B66-B819-4D14-8711-C4EAAA13AC01
ResourceGroupobject

资源组信息。

AccountIdstring

资源组所属的阿里云账号 ID。

123456789****
CreateDatestring

资源组创建时间(UTC 时间)。

2015-01-23T12:33:18Z
DisplayNamestring

资源组显示名称。

my-project
Idstring

资源组 ID。

rg-9gLOoK****
Namestring

资源组唯一标识。

my-project
RegionStatusesarray<object>

各个地域的资源组状态。

RegionStatusobject

各个地域的资源组状态。

RegionIdstring

地域 ID。

cn-qingdao
Statusstring

资源组状态。取值:

  • Creating:创建中。
  • OK:创建成功。
  • PendingDelete:等待删除。
  • Deleting:删除中。
PendingDelete
Statusstring

资源组状态。取值:

  • Creating:创建中。
  • OK:创建成功。
  • PendingDelete:等待删除。
PendingDelete

示例

正常返回示例

JSON格式

{
  "RequestId": "1C488B66-B819-4D14-8711-C4EAAA13AC01",
  "ResourceGroup": {
    "AccountId": "123456789****",
    "CreateDate": "2015-01-23T12:33:18Z",
    "DisplayName": "my-project",
    "Id": "rg-9gLOoK****",
    "Name": "my-project",
    "RegionStatuses": {
      "RegionStatus": [
        {
          "RegionId": "cn-qingdao",
          "Status": "PendingDelete"
        }
      ]
    },
    "Status": "PendingDelete"
  }
}

错误码

HTTP status code错误码错误信息描述
400InvalidParameter.ResourceGroupIdThe ResourceGroupId is invalid.资源组ID无效。
404EntityNotExists.ResourceGroupThe specified resource group does not exist. You must first create a resource group.资源组不存在,请先创建资源组。
409DeleteConflict.ResourceGroup.ResourceFailed to delete the resource group because one or more cloud resources exist in the resource group. Try again later after you release the cloud resources.资源组下存在云资源,请先释放资源。
409DeleteConflict.ResourceGroup.ResourceCenterResourceThe resource group cannot be deleted while it contains cloud resources detected by the Resource Center. Please release these resources and try again.-

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
2026-02-27OpenAPI 描述信息更新、OpenAPI 错误码发生变更查看变更详情