

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 从行为图中删除账户
<a name="member-remove-self-from-graph"></a>

接受邀请后，可以随时从行为图中删除账户。从行为图中删除账户时，Amazon Detective 会停止从账户向行为图中摄取数据。现有数据仍保留在行为图中。

只有受邀账户才能从行为图中删除自己的账户。组织账户不能从组织行为图中删除自己的账户。

## 从行为图中删除账户（控制台）
<a name="member-remove-self-console"></a>

您可以使用 AWS 管理控制台 将您的账户从行为图表中移除。

**要从行为图中删除账户（控制台）**

1. 通过 [https://console.aws.amazon.com/detective/](https://console.aws.amazon.com/detective/) 打开 Amazon Detective 控制台。

1. 在 Detective 导航窗格中，选择**账户管理**。

1. 在**我的管理员账户**下，针对要退出的行为图，选择**退出**。

## 从行为图中删除你的账户（Detective API， AWS CLI）
<a name="member-remove-self-api"></a>

你可以使用 Detective API 或 AWS Command Line Interface 将你的账户从行为图中移除。

**要将你的账号从行为图中移除（Detective API， AWS CLI）**
+ **Detective API：**使用 [https://docs.aws.amazon.com/detective/latest/APIReference/API_DisassociateMembership.html](https://docs.aws.amazon.com/detective/latest/APIReference/API_DisassociateMembership.html) 操作。您必须指定图 ARN。
+ **AWS CLI：**在命令行处，运行 [https://docs.aws.amazon.com/cli/latest/reference/detective/disassociate-membership.html](https://docs.aws.amazon.com/cli/latest/reference/detective/disassociate-membership.html) 命令。

  ```
  aws detective disassociate-membership --graph-arn <behavior graph ARN>
  ```

  示例：

  ```
  aws detective disassociate-membership --graph-arn arn:aws:detective:us-east-1:111122223333:graph:123412341234
  ```