Bulk unenroll agents
[Required authorization] Route required privileges: fleet-agents-all.
Body
-
batchSize
number -
force
boolean Unenrolls hosted agents too
-
includeInactive
boolean When passing agents by KQL query, unenrolls inactive agents too
-
revoke
boolean Revokes API keys of agents
POST
/api/fleet/agents/bulk_unenroll
curl \
--request POST 'https://<KIBANA_URL>/api/fleet/agents/bulk_unenroll' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{"agents":["string"],"batchSize":42.0,"force":true,"includeInactive":true,"revoke":true}'