Delete an agent policy
Delete an agent policy by ID.
[Required authorization] Route required privileges: fleet-agent-policies-all.
Body
-
agentPolicyId
string Required -
force
boolean bypass validation checks that can prevent agent policy deletion
POST
/api/fleet/agent_policies/delete
curl \
--request POST 'https://localhost:5601/api/fleet/agent_policies/delete' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{"agentPolicyId":"string","force":true}'