All Products
Search
Document Center

Resource Management:DeleteAccount

Last Updated:Aug 28, 2026

Deletes a resource account member from a resource directory.

Operation description

Before you delete a member, call CheckAccountDelete and GetAccountDeletionCheckResult to verify that the member meets deletion requirements. Only members that pass the check can be deleted.

After you submit a deletion request, call GetAccountDeletionStatus to query the deletion status. After a member is deleted, all resources and data within it are removed and you can no longer use the member to log on to the Alibaba Cloud Management Console. The member cannot be recovered. Proceed with caution. Delete a member of the resource account type.

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

AccountId

string

Yes

The Alibaba Cloud account ID of the member to delete.

169946124551****

AbandonableCheckId

array

No

The IDs of check items to ignore for the member deletion.

Obtain the IDs from the GetAccountDeletionCheckResult response.

string

No

The ID of a check item to ignore for the member deletion.

Obtain the ID from the GetAccountDeletionCheckResult response.

NON_SP_cs

Response elements

Element

Type

Description

Example

object

The returned result.

RequestId

string

The request ID.

009429F8-C1C0-5872-B674-A6C2333B9647

DeletionType

string

The type of the deletion. Valid values:

  • 0: direct deletion. The member has no pay-as-you-go resources purchased in the last 30 days and is deleted immediately.

  • 1: deletion with a silence period. The member has pay-as-you-go resources purchased in the last 30 days and enters a silence period before deletion. What is the silence period for member deletion?

0

Examples

Success response

JSON format

{
  "RequestId": "009429F8-C1C0-5872-B674-A6C2333B9647",
  "DeletionType": "0"
}

Error codes

HTTP status code

Error code

Error message

Description

400 MissingParameter.AccountId You must specify AccountId.
400 InvalidParameter.AccountId The AccountId is invalid.
404 EntityNotExists.Account This resource directory account does not exist.
404 EntityNotExists.ResourceDirectory The resource directory for the account is not enabled. We recommend that you first enable the resource directory for the account.
409 AccountTypeOrStatusMismatch You cannot perform the action on the member account.
409 NoLicense.ResourceDirectory The resource directory has not enabled the delete operation.
409 UnknownError.Account Delete failed. An unknown error occurred. Please try again later.
409 AccountNotExist.DeleteAccount The deletion failed. The account does not exist. Please confirm whether it has been deleted.
409 ExistProcessingDeleteFlow.DeleteAccount The request is invalid. The account is already in the process of deletion. Please do not repeat the operation.
409 CreditControlBlock.DeleteAccount The deletion failed. There are unsettled bills in the current account. Please settle them first and try again.
409 SpBlock.DeleteAccount The deletion failed. There is a specific product under the current account. Please clear it and try again.
409 PeripheralError.DeleteAccount The deletion failed. The deletion process is abnormal. Please try again later.
409 MemberTypeError.DeleteAccount Cloud account type members do not support deletion.
409 CallerIdentityError.DeleteAccount Please use the RAM user or role of the management account to delete.
409 ExistPrepaidInstance.DeleteAccount The deletion failed. There are prepaid products under the current account. Please release them and try again.
409 ForbidDelete.Account Delete is prohibited. The current account is abnormal. Please contact customer service.
409 QuotaExceeded.DeleteAccount You have exceeded delete account quota for the past 30 days.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.