Bulk delete package policies
- Base URL
-
https://{kibana_url}
- POST /api/fleet/package_policies/delete
- POST /s/{space_id}/api/fleet/package_policies/delete
Delete multiple package policies by ID.
Required privileges
- Privileges fleet-agent-policies-all and integrations-all
Path parameters
-
space_idstringoptional -
An identifier for the space. If
space_idis not provided in the URL, the default space is used. Refer to Spaces for more information.
Query parameters
-
onboarding_deployment_idstring · max length: 256 -
ID of the cloud onboarding instance that manages the package policies. Required to change package policies managed by a cloud onboarding instance; only the onboarding flow is expected to set it. Requests that change a managed package policy without a matching ID are rejected with a 400 error, and
forcedoes not bypass this check. A bulk delete that includes such a package policy is rejected as a whole.
Responses
Successful response