v53

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-076771,7565.2 MB
Elastic Agent actions

Bulk remove OpAMP collectors

Spaces method and path for this operation:

<div><span class="operation-verb post">post</span>&nbsp;<span class="operation-path">/s/{space_id}/api/fleet/agents/bulk_remove_collectors</span></div>

Refer to Spaces for more information.

Remove multiple OpAMP collectors from the Fleet agents list. Marks the collectors as unenrolled. This action does not invalidate API keys, so collectors can reconnect on their own.<br/><br/>[Required authorization] Route required privileges: fleet-agents-all.

post/api/fleet/agents/bulk_remove_collectors

Headers

kbn-xsrfstring required
Example:true

A required header to protect against CSRF attacks

Request body

dryRunboolean
includeInactiveboolean

When passing collectors by KQL query, also removes inactive collectors

Response

Successful response

OR