Deleting member accounts - AWS Security Hub

Deleting member accounts

As an administrator account, you can delete member accounts that were added by invitation. Before you can delete an enabled account, you must disassociate it.

When you delete a member account, it is completely removed from the list. To restore the account's membership, you must add it and invite it as if it were a completely new member account.

Deleting member accounts (console)

From the Security Hub console, you can delete one or more accounts.

To delete member accounts

  1. Open the AWS Security Hub console at https://console.aws.amazon.com/securityhub/.

  2. In the navigation pane, choose Settings, and then choose Accounts.

  3. Under Member accounts, select the accounts to delete.

  4. Choose Actions, and then choose Delete accounts.

Deleting member accounts (Security Hub API, AWS CLI)

To delete member accounts, you can use an API call or the AWS Command Line Interface.

To delete member accounts (Security Hub API, AWS CLI)

  • Security Hub API – Use the DeleteMembers operation. You must provide the AWS account IDs of the member accounts to delete. To retrieve the list of member accounts, use the ListMembers operation.

  • AWS CLI – At the command line, run the delete-members command.

    aws securityhub delete-members --account-ids <memberAccountIDs>

    Example

    aws securityhub delete-members --account-ids "123456789111" "123456789222"