deleteMembers
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.
Samples
fun main() {
//sampleStart
// 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.
val resp = securityHubClient.deleteMembers {
accountIds = listOf<String>(
"123456789111",
"123456789222"
)
}
//sampleEnd
}