Delete an agent policy
Delete an agent policy by ID.
[Required authorization] Route required privileges: ALL of [fleet-agent-policies-all].
POST
/api/fleet/agent_policies/delete
curl \
--request POST https://localhost:5601/api/fleet/agent_policies/delete \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{"agentPolicyId":"string","force":true}'
Request examples
# Headers
kbn-xsrf: true
# Payload
{
"agentPolicyId": "string",
"force": true
}
Response examples (200)
{
"id": "string",
"name": "string"
}
Response examples (400)
{
"error": "string",
"message": "string",
"statusCode": 42.0
}