There are different ways to remove a Wazuh agent that is enrolled in the Wazuh manager. This includes using the CLI or querying the Wazuh server API.