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-idstringrequired- 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.
- When true, allow deletion of hidden enrollment tokens (managed/agentless policies). Defaults to false.
--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)
--yes- confirm destructive action without prompting
--json-
output as JSON