discovery:BatchDeleteAgents

Write

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

Resource types

This action does not support resource-level permissions; use "Resource": "*" in your policy.

Condition keys

No condition keys are documented for this action.

Example IAM policy

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": "*"
    }
  ]
}

Related actions in discovery

View all discovery actions →