Before proceeding with agent uninstall, make sure you follow guidelines mention here.
Run the following commands to uninstall agent:
# Stop services
sudo systemctl stop autoscalerShutdownAgent.service
sudo systemctl stop autoscalerAgent.service
sudo systemctl stop nwAgent.service
# Disable services
sudo systemctl disable autoscalerShutdownAgent.service
sudo systemctl disable autoscalerAgent.service
sudo systemctl disable nwAgent.service
# Remove service definitions
sudo rm -f /etc/systemd/system/autoscalerShutdownAgent.service
sudo rm -f /etc/systemd/system/autoscalerAgent.service
sudo rm -f /etc/systemd/system/nwAgent.service
# Reload systemd daemon
sudo systemctl daemon-reload
# Remove installation directory
sudo rm -rf /opt/lucidity