stack kb fleet-agentless-policies delete-fleet-agentless-policies-policyid cli command
Destructive
Auth required
Idempotent
Scope: global
elastic stack kb fleet-agentless-policies delete-fleet-agentless-policies-policyid \
--policy-id <policy-id> \
[options]
Delete an agentless policy
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--policy-idstringrequired- The ID of the policy to delete.
--[no-]force- Force delete the policy even if the policy is managed.
--input-filestring- path to a JSON file to use as command input
--[no-]dry-run- validate all inputs and exit without performing any action (preview changes without applying them)
--[no-]json-
output as JSON