Unenroll an agent
- Base URL
-
https://{kibana_url}
- POST /api/fleet/agents/{agentId}/unenroll
- POST /s/{space_id}/api/fleet/agents/{agentId}/unenroll
Unenroll a specific agent. By default, the agent stops sending data and its API keys are invalidated after it acknowledges the unenroll action. To invalidate the API keys immediately, use revoke. Force unenroll in the UI sends revoke: true.
Responses
200
application/json
Successful response
400
application/json
Bad Request