Wazuh API: (delete old agent)
https://wazuh.aholadigital.com/app/wazuh#/wazuh-dev?tab=devTools
delete old agent
run command api:
DELETE /agents?status=all&older_than=0d&pretty&agents_list=029
or:
DELETE /agents?status=disconnected&agents_list=029
that will delete agent #029