Deletes a sub-account.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeleteAccount |
The operation that you want to perform. Set the value to DeleteAccount. |
AccountName | String | Yes | admin123 |
The username of the sub-account. |
RegionId | String | Yes | cn-hangzhou |
The region ID. |
IsShort | Boolean | No | false |
Specifies whether to use an abbreviation. |
IsServiceUser | Boolean | No | false |
Specifies whether the sub-account is a service account. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RegionId | String | cn-hangzhou |
The region ID. |
RequestId | String | 8A840E5A-37DC-4178-81C1-367E733DA558 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DeleteAccount
&AccountName=admin123
&RegionId=cn-hangzhou
&<Common request parameters>
Sample success responses
XML
format
<DeleteAccount>
<RequestId>8A840E5A-37DC-4178-81C1-367E733DA558</RequestId>
<RegionId>cn-hangzhou</RegionId>
</DeleteAccount>
JSON
format
{
"RequestId":"8A840E5A-37DC-4178-81C1-367E733DA558",
"RegionId":"cn-hangzhou"
}
Error codes
For a list of error codes, visit the API Error Center.