

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 從行為圖表中移除帳戶
<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
  ```