stack kb elastic-agent-actions post-fleet-agents-bulk-remove-collectors cli command
Auth required
elastic stack kb elastic-agent-actions post-fleet-agents-bulk-remove-collectors \
--agents <agents> \
[options]
Bulk remove OpAMP collectors
--agentsstringrequired-
Repeatable: pass
--agentsmultiple times to supply more than one value --dry-run--include-inactive- When passing collectors by KQL query, also removes inactive collectors
--input-filestring- path to a JSON file to use as command input
--no-validate- skip input validation and send the request as-is
--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