Spaces method and path for this operation:
post /s/{space_id}/api/fleet/package_policies/delete
Refer to Spaces for more information.
Delete multiple package policies by ID.
[Required authorization] Route required privileges: fleet-agent-policies-all AND integrations-all.
POST
/api/fleet/package_policies/delete
curl \
--request POST 'https://localhost:5601/api/fleet/package_policies/delete' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{"packagePolicyIds":["package-policy-id-1","package-policy-id-2"]}'
Request example
Delete multiple package policies by ID
{
"packagePolicyIds": [
"package-policy-id-1",
"package-policy-id-2"
]
}
Response examples (200)
Results of the bulk delete operation
[
{
"id": "package-policy-id-1",
"success": true
},
{
"id": "package-policy-id-2",
"success": true
}
]
Response examples (400)
Example of a generic error response
{
"error": "Bad Request",
"message": "An error message describing what went wrong",
"statusCode": 400
}