Skip to content

Delete Members

securityhub_delete_members R Documentation

Deletes the specified member accounts from Security Hub

Description

Deletes the specified member accounts from Security Hub.

You can invoke this API only to delete accounts that became members through invitation. You can't invoke this API to delete accounts that belong to an Organizations organization.

Usage

securityhub_delete_members(AccountIds)

Arguments

AccountIds

[required] The list of account IDs for the member accounts to delete.

Value

A list with the following syntax:

list(
  UnprocessedAccounts = list(
    list(
      AccountId = "string",
      ProcessingResult = "string"
    )
  )
)

Request syntax

svc$delete_members(
  AccountIds = list(
    "string"
  )
)

Examples

## Not run: 
# The following example deletes the specified member account from Security
# Hub. This operation can be used to delete member accounts that are part
# of an organization or that were invited manually.
svc$delete_members(
  AccountIds = list(
    "123456789111",
    "123456789222"
  )
)

## End(Not run)