Deletes one or more account groups.

In the example of this topic, a request is sent to delete the account group whose ID is ca-9190626622af00a9****.

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 Yes DeleteAggregators

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

AggregatorIds String Yes ca-9190626622af00a9****

The ID of the account group. Separate multiple IDs with commas (,).

ClientToken String No AAAAAdDWBF2****

The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that it is unique among different requests. ClientToken can contain only ASCII characters and cannot exceed 64 characters in length.

Response parameters

Parameter Type Example Description
RequestId String 8195B664-9565-4685-89AC-8B5F04B44B92

The ID of the request.

OperateAggregatorsResult Object

The results of the delete operations.

OperateAggregators Array of OperateAggregatorList

The result for the account group.

ErrorCode String AccountNotExisted

The error code.

Note No error code is returned for the account group if the account group is deleted.
Success Boolean false

Indicates whether the delete operation is successful. Valid values:

  • true: The account group is deleted.
  • false: The account group fails to be deleted.
AggregatorId String ca-dacf86d8314e00eb****

The ID of the account group.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DeleteAggregators
&AggregatorIds=ca-9190626622af00a9****
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DeleteAggregatorsResponse>
    <RequestId>95B23BAB-ABB2-43C8-9475-2DC42EA60CAA</RequestId>
    <OperateAggregatorsResult>
        <OperateAggregators>
            <ErrorCode></ErrorCode>
            <AggregatorId>ca-9190626622af00a9****</AggregatorId>
            <Success>true</Success>
        </OperateAggregators>
    </OperateAggregatorsResult>
</DeleteAggregatorsResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "95B23BAB-ABB2-43C8-9475-2DC42EA60CAA",
  "OperateAggregatorsResult" : {
    "OperateAggregators" : [ {
      "ErrorCode" : "",
      "AggregatorId" : "ca-9190626622af00a9****",
      "Success" : true
    } ]
  }
}

Error codes

HTTP status code Error code Error message Description
400 NoPermission You are not authorized to perform this operation. The error message returned because you are not authorized to perform the specified operation.
400 Invalid.AggregatorIds.Empty You must specify AggregatorIds. The error message returned because no account group ID is specified.
400 Invalid.AggregatorIds.SizeExceed The maximum number of AggregatorIds is 5. The error message returned because the number of specified account groups exceeds five.
403 AggregatorMemberNoPermission The aggregator member is not authorized to perform the operation. The error message returned because you are using a member account and you are not authorized to perform the specified operation.
404 AccountNotExisted Your account does not exist. The error message returned because your account does not exist.
503 ServiceUnavailable The request has failed due to a temporary failure of the server. The error message returned because the service is unavailable.

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