Removes the specified member accounts from the behavior graph. The removed accounts no
longer contribute data to the behavior graph. This operation can only be called by the
administrator account for the behavior graph.
For invited accounts, the removed accounts are deleted from the list of accounts in the
behavior graph. To restore the account, the administrator account must send another
invitation.
For organization accounts in the organization behavior graph, the Detective
administrator account can always enable the organization account again. Organization
accounts that are not enabled as member accounts are not included in the
ListMembers results for the organization behavior graph.
An administrator account cannot use DeleteMembers to remove their own
account from the behavior graph. To disable a behavior graph, the administrator account
uses the DeleteGraph API method.
example
Use a bare-bones client and the command you need to make an API call.
Removes the specified member accounts from the behavior graph. The removed accounts no longer contribute data to the behavior graph. This operation can only be called by the administrator account for the behavior graph.
For invited accounts, the removed accounts are deleted from the list of accounts in the behavior graph. To restore the account, the administrator account must send another invitation.
For organization accounts in the organization behavior graph, the Detective administrator account can always enable the organization account again. Organization accounts that are not enabled as member accounts are not included in the
ListMembers
results for the organization behavior graph.An administrator account cannot use
DeleteMembers
to remove their own account from the behavior graph. To disable a behavior graph, the administrator account uses theDeleteGraph
API method.Use a bare-bones client and the command you need to make an API call.
import { DetectiveClient, DeleteMembersCommand } from "@aws-sdk/client-detective"; // ES Modules import // const { DetectiveClient, DeleteMembersCommand } = require("@aws-sdk/client-detective"); // CommonJS import const client = new DetectiveClient(config); const command = new DeleteMembersCommand(input); const response = await client.send(command);
DeleteMembersCommandInput for command's
input
shape.DeleteMembersCommandOutput for command's
response
shape.config for DetectiveClient's
config
shape.