DeleteAccount - 删除资源账号

调用DeleteAccount删除资源类型的成员。

接口说明

删除成员前,建议您先调用 CheckAccountDeleteGetAccountDeletionCheckResult ,对成员进行删除前的条件检查。只有符合删除条件的成员,才能调用 DeleteAccount 成功将其删除。

成功提交成员删除申请后,您可以通过 GetAccountDeletionStatus 查询删除状态。且成员一旦删除,成员中的所有资源及数据都会被删除,您无法再次登录和使用它,将无法找回,请您谨慎操作。关于成员删除的更多信息,请参见删除资源账号类型的成员

调试

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

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用背景高亮的方式表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
resourcemanager:DeleteAccountdelete
*Account
acs:resourcemanager::{#accountId}:account/{#ResourceDirectoryPath}

请求参数

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

待删除的成员 ID。

169946124551****
AbandonableCheckIdarray

可以选择放弃并继续执行成员删除的检查项 ID。

该 ID 从 GetAccountDeletionCheckResult 的返回参数 AbandonableChecks 中获取。

string

可以选择放弃并继续执行成员删除的检查项 ID。

该 ID 从 GetAccountDeletionCheckResult 的返回参数 AbandonableChecks 中获取。

NON_SP_cs

返回参数

名称类型描述示例值
object

返回结果。

RequestIdstring

请求 ID。

009429F8-C1C0-5872-B674-A6C2333B9647
DeletionTypestring

删除类型。取值:

  • 0:直接删除。如果成员最近 30 天内不存在后付费资源,则系统会直接删除该成员。
  • 1:静默期删除。如果成员最近 30 天内存在后付费资源,则会进入静默期。等待静默期结束后,系统才会开始删除该成员。关于静默期的更多信息,请参见什么是成员删除的静默期
0

示例

正常返回示例

JSON格式

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

错误码

HTTP status code错误码错误信息描述
400MissingParameter.AccountIdYou must specify AccountId.AccountId不能为空。
400InvalidParameter.AccountIdThe AccountId is invalid.成员ID无效,请输入16位账号ID。
404EntityNotExists.AccountThis resource directory account does not exist.成员不存在,请先创建成员。
404EntityNotExists.ResourceDirectoryThe resource directory for the account is not enabled. We recommend that you first enable the resource directory for the account.当前账号未启用资源目录,请先启用资源目录。
409AccountTypeOrStatusMismatchYou cannot perform the action on the member account.成员类型或状态不匹配。
409NoLicense.ResourceDirectoryThe resource directory has not enabled the delete operation.资源目录未开启删除许可。
409UnknownError.AccountDelete failed. An unknown error occurred. Please try again later.-
409AccountNotExist.DeleteAccountThe deletion failed. The account does not exist. Please confirm whether it has been deleted.删除失败。账号不存在,请确认是否已经删除。
409ExistProcessingDeleteFlow.DeleteAccountThe request is invalid. The account is already in the process of deletion. Please do not repeat the operation.请求无效。账号已在删除流程中,请勿重复操作。
409CreditControlBlock.DeleteAccountThe deletion failed. There are unsettled bills in the current account. Please settle them first and try again.-
409SpBlock.DeleteAccountThe deletion failed. There is a specific product under the current account. Please clear it and try again.-
409PeripheralError.DeleteAccountThe deletion failed. The deletion process is abnormal. Please try again later.删除失败。删除流程异常,请稍后重试。
409MemberTypeError.DeleteAccountCloud account type members do not support deletion.云账号类型成员不支持删除。
409CallerIdentityError.DeleteAccountPlease use the RAM user or role of the management account to delete.请使用管理账号的RAM用户或角色进行删除操作。
409ExistPrepaidInstance.DeleteAccountThe deletion failed. There are prepaid products under the current account. Please release them and try again.删除失败。当前账号下存在预付费产品,请释放后重试删除。
409ForbidDelete.AccountDelete is prohibited. The current account is abnormal. Please contact customer service.禁止删除。当前账号异常,请联系客服咨询。
409QuotaExceeded.DeleteAccountYou have exceeded delete account quota for the past 30 days.删除成员数量超出最大限额。

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

变更历史

变更时间变更内容概要操作
2024-06-06OpenAPI 错误码发生变更查看变更详情