

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# Detective 管理者アカウントの削除
<a name="accounts-remove-admin-overview"></a>

組織管理アカウントは、現在の Detective 管理者アカウントを削除することができます。Detective 管理者アカウントを削除する場合、Detective はそのアカウントを現在のリージョンからのみ削除します。Organizations での委任された管理者アカウントは変更されません。

組織管理アカウントがリージョンの Detective 管理者アカウントを削除すると、Detective は組織動作グラフを削除します。削除された Detective 管理者アカウントでは、Detective は無効になっています。

Detective の委任された現在の管理者アカウントを削除するには、Organizations API を使用します。Organizations での Detective の委任された管理者アカウントを削除すると、Detective は、委任された管理者アカウントが Detective 管理者アカウントである組織動作グラフをすべて削除します。組織管理アカウントが Detective 管理者アカウントである組織動作グラフは影響を受けません。

------
#### [ Console ]

Detective コンソールから、Detective 管理者アカウントを削除することができます。

Detective 管理者アカウントを削除すると、そのアカウントに対し、Detective が無効になり、組織動作グラフが削除されます。Detective 管理者アカウントは、現在のリージョンでのみ削除されます。

**重要**  
Detective 管理者アカウントを削除しても、Organizations での委任された管理者アカウントには影響しません。

**Detective 管理者アカウントを削除するには (**[Detective を有効にする]** ページ)**

1. [https://console.aws.amazon.com/detective/](https://console.aws.amazon.com/detective/) で Amazon Detective コンソールを開きます。

1. **[開始する]** を選択します。

1. **[委任された管理者]** で **[Amazon Detective を無効化]** を選択します。

1. 確認ダイアログボックスで、「**disable**」と入力してから、**[Amazon Detective を無効化]** を選択します。

**Detective 管理者アカウントを削除するには (**[全般]** ページ)**

1. [https://console.aws.amazon.com/detective/](https://console.aws.amazon.com/detective/) で Amazon Detective コンソールを開きます。

1. Detective のナビゲーションペインで、**[設定]** の **[全般]** を選択します。

1. **[委任された管理者]** で **[Amazon Detective を無効化]** を選択します。

1. 確認ダイアログボックスで、「**disable**」と入力してから、**[Amazon Detective を無効化]** を選択します。

------
#### [ Detective API, AWS CLI ]

Detective 管理者アカウントを削除するには、API コールまたは AWS CLIを使用します。組織管理アカウントの認証情報を使用する必要があります。

Detective 管理者アカウントを削除すると、そのアカウントに対し、Detective が無効になり、組織動作グラフが削除されます。

**重要**  
Detective 管理者アカウントを削除しても、Organizations での委任された管理者アカウントには影響しません。

**Detective 管理者アカウントを削除するには (Detective API、 AWS CLI)**
+ **Detective API**: [https://docs.aws.amazon.com/detective/latest/APIReference/API_DisableOrganizationAdminAccount.html](https://docs.aws.amazon.com/detective/latest/APIReference/API_DisableOrganizationAdminAccount.html) オペレーションを使用します。

  Detective API を使用して Detective 管理者アカウントを削除する場合、API コールまたはコマンドが発行されたリージョンでのみ削除されます。
+ **AWS CLI:** コマンドラインで [https://docs.aws.amazon.com/cli/latest/reference/detective/disable-organization-admin-account.html](https://docs.aws.amazon.com/cli/latest/reference/detective/disable-organization-admin-account.html) コマンドを実行します。

  ```
  aws detective disable-organization-admin-account
  ```

------

## 委任管理者アカウントの削除
<a name="accounts-remove-admin-orgs-api"></a>

Detective 管理者アカウントを削除しても、Organizations での委任された管理者アカウントは自動的に削除されることはありません。Detective の委任された管理者アカウントを削除するには、Organizations API を使用します。

委任された管理者アカウントを削除すると、委任された管理者アカウントが Detective 管理者アカウントであるすべての組織動作グラフが削除されます。また、それらのリージョンのアカウントに対し、Detective も無効になります。

**委任管理者アカウントを削除するには (Organizations API、 AWS CLI)**
+ **Organizations API: **[https://docs.aws.amazon.com/organizations/latest/APIReference/API_DeregisterDelegatedAdministrator.html](https://docs.aws.amazon.com/organizations/latest/APIReference/API_DeregisterDelegatedAdministrator.html) オペレーションを使用します。Detective 管理者アカウントのアカウント識別子と、Detective のサービスプリンシパル `detective.amazonaws.com` を指定する必要があります。
+ **AWS CLI:** コマンドラインで [https://docs.aws.amazon.com/cli/latest/reference/organizations/deregister-delegated-administrator.html](https://docs.aws.amazon.com/cli/latest/reference/organizations/deregister-delegated-administrator.html) コマンドを実行します。

  ```
  aws organizations deregister-delegated-administrator --account-id {{<Detective administrator account ID>}} --service-principal {{<Detective service principal>}}
  ```

  **例**

  ```
  aws organizations deregister-delegated-administrator --account-id 777788889999 --service-principal detective.amazonaws.com
  ```