discovery:BatchDeleteAgents is a Write access-level action in the discovery service. Grants permission to BatchDeleteAgents API. BatchDeleteAgents deletes one or more agents/data collectors associated with your account, each identified by its agent ID. Deleting a data collector does not delete the previous data collected
This action does not support resource-level permissions; use "Resource": "*" in your policy.
No condition keys are documented for this action.
A minimal policy that allows discovery:BatchDeleteAgents. Replace "Resource": "*" with a specific ARN to follow least privilege.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowDiscoveryBatchDeleteAgents",
"Effect": "Allow",
"Action": "discovery:BatchDeleteAgents",
"Resource": "*"
}
]
}