stack kb context-engine delete-context-engine-ai-index-aiindexid cli command
Destructive
Auth required
Idempotent
Scope: global
elastic stack kb context-engine delete-context-engine-ai-index-aiindexid \
--ai-index-id <ai-index-id> \
[options]
Delete an AI Index
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--ai-index-idstringrequired- The unique identifier of the AI Index.
--delete-knowledge-indicators- When true, also delete the backing data stream/index, which removes its Knowledge Indicators. Skipped when another AI Index still uses the same dest. Defaults to false.
--delete-automations- When true, also delete the attached workflow automations. 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)
--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