Hi mnb,
Thank you for using Wazuh and sharing your question with
the community. There are 2 ways to delete the agent which are through
the API or CLI. For example, if you want to delete the agent from the
API you can use "Dev Tools" option of the Kibana app or do it from the
Linux console.
If you want to use CLI mode, you should open the terminal as root on the manager side and run the following command:
/var/ossec/bin/manage_agents -r 002
You should change the 002 to your agent ID.
I would like to know the process you followed to remove the agent to help you.
Best regards
Hanes