Remove agents using the Wazuh API
The request DELETE /agents removes the specified agents.
# curl -u foo:bar -k -X DELETE "https://127.0.0.1:55000/agents?older_than=10s&ids=005,006,007&pretty"
{
"error": 0,
"data": {
"msg": "All selected agents were removed",
"affected_agents": [
"005",
"006",
"007"
]
}
}