Delete an agentless policy
Technical Preview; added in 9.3.0
Spaces method and path for this operation:
delete /s/{space_id}/api/fleet/agentless_policies/{policyId}
Refer to Spaces for more information.
Delete an agentless policy
DELETE
/api/fleet/agentless_policies/{policyId}
curl \
--request DELETE 'https://localhost:5601/api/fleet/agentless_policies/{policyId}' \
--header "Authorization: $API_KEY" \
--header "kbn-xsrf: true"
Response examples (200)
Example response showing the successful result of communication initialisation over MCP protocol
{
"item": {
"id": "d52a7812-5736-4fdc-aed8-72152afa1ffa"
}
}
Response examples (400)
Example of a generic error response
{
"error": "Bad Request",
"message": "An error message describing what went wrong",
"statusCode": 400
}
Response examples (409)
Example of a conflict error response
{
"error": "Conflict",
"message": "An error message describing what went wrong",
"statusCode": 409
}