All Products
Search
Document Center

Resource Management:GetAccountDeletionStatus

Last Updated:Sep 02, 2026

Queries the deletion status of a member account.

Operation description

This topic provides an example on how to query the deletion status of the member account 169946124551****. The response shows that the member account has been successfully deleted.

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

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

resourcemanager:GetAccountDeletionStatus

get

*Account

acs:resourcemanager:*:{#accountId}:account/{#ResourceDirectoryPath}

None None

Request parameters

Parameter

Type

Required

Description

Example

AccountId

string

Yes

The ID of the member account.

169946124551****

Response elements

Element

Type

Description

Example

object

The response.

RdAccountDeletionStatus

object

The deletion status of the member account.

Status

string

The status. Valid values:

  • Success: The member account is deleted.

  • Checking: The check is in progress.

  • Deleting: The deletion is in progress.

  • CheckFailed: The check failed.

  • DeleteFailed: The deletion failed.

Success

AccountId

string

The ID of the member account.

169946124551****

CreateTime

string

The time when the deletion started, in RFC 3339 format with a UTC offset of +08:00.

2022-08-23T17:05:30+08:00

DeletionTime

string

The time when the deletion ended, in RFC 3339 format with a UTC offset of +08:00.

2022-08-23T17:06:01+08:00

FailReasonList

array<object>

The reasons for the deletion failure.

object

The reasons for the deletion failure.

Name

string

The service name of the cloud service to which the check item belongs.

Others

Description

string

The description of the check item.

This account has a payer account. Please release the financial relationship of this account first.

DeletionType

string

The deletion type. Valid values:

  • 0: direct deletion. If the member account has no pay-as-you-go resources in the last 30 days, the system directly deletes the member account.

  • 1: cool-down period deletion. If the member account has pay-as-you-go resources in the last 30 days, the member account enters a cool-down period. The system starts to delete the member account after the cool-down period ends. For more information about the cool-down period, see What is the cool-down period for member account deletion.

0

RequestId

string

The request ID.

8AA43293-7C8F-5730-8F2D-7F864EC092C5

Examples

Success response

JSON format

{
  "RdAccountDeletionStatus": {
    "Status": "Success",
    "AccountId": "169946124551****",
    "CreateTime": "2022-08-23T17:05:30+08:00",
    "DeletionTime": "2022-08-23T17:06:01+08:00",
    "FailReasonList": [
      {
        "Name": "Others",
        "Description": "This account has a payer account. Please release the financial relationship of this account first."
      }
    ],
    "DeletionType": "0"
  },
  "RequestId": "8AA43293-7C8F-5730-8F2D-7F864EC092C5"
}

Error codes

HTTP status code

Error code

Error message

Description

404 EntityNotExists.Account This resource directory account does not exist. The specified member account does not exist. We recommend that you first create a member account.
409 EntityNotExists.CheckAccount There is no check task for this account No check task exists for the account.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.