stack kb fleet-package-policies delete-fleet-package-policies-packagepolicyid cli command
Destructive
Auth required
Idempotent
Scope: global
elastic stack kb fleet-package-policies delete-fleet-package-policies-packagepolicyid \
--package-policy-id <package-policy-id> \
[options]
Delete a package policy
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--package-policy-idstringrequired- The ID of the package policy
--force- When true, delete the package policy even if it is managed
--onboarding-deployment-idstring- 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. --input-filestring- path to a JSON file to use as command input
--dry-run- validate all inputs and exit without performing any action (preview changes without applying them)
--no-validate- skip input validation and send the request as-is
--yes- confirm destructive action without prompting
--output-fieldsstring- comma-separated list of fields to include in output (dot-notation supported)
--output-templatestring- Mustache-like template for custom text output (e.g. "{{id}}: {{name}}")
--json-
output as JSON