stack kb fleet-enrollment-api-keys delete-fleet-enrollment-api-keys-keyid cli command

Destructive Auth required Idempotent Scope: global
elastic stack kb fleet-enrollment-api-keys delete-fleet-enrollment-api-keys-keyid \
  --key-id <key-id> \
  [options]
		

Revoke or delete an enrollment API key

Behaviour flags:

--dry-run — validate all inputs and exit without performing any action

--key-id string required
The ID of the enrollment API key
--force-delete
When false (default), invalidate the API key and mark the token as inactive. When true, also delete the token document.
--include-hidden
When true, allow deletion of hidden enrollment tokens (managed/agentless policies). Defaults to false.
--input-file string
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-fields string
comma-separated list of fields to include in output (dot-notation supported)
--output-template string
Mustache-like template for custom text output (e.g. "{{id}}: {{name}}")
--json

output as JSON