Unable to uninstall elastic-agent

n227-012-170 ➜ ~ sudo elastic-agent uninstall

Error: can only be uninstall by executing the installed Elastic Agent at: /usr/bin/elastic-agent

For help, please see our troubleshooting guide at Troubleshoot common problems | Fleet and Elastic Agent Guide [8.2] | Elastic

n227-012-170 ➜ ~ cd /usr/bin

n227-012-170 ➜ bin sudo ./elastic-agent uninstall

Error: can only be uninstall by executing the installed Elastic Agent at: /usr/bin/elastic-agent

For help, please see our troubleshooting guide at Troubleshoot common problems | Fleet and Elastic Agent Guide [8.2] | Elastic

n227-012-170 ➜ bin sudo elastic-agent uninstall

Error: can only be uninstall by executing the installed Elastic Agent at: /usr/bin/elastic-agent

For help, please see our troubleshooting guide at Troubleshoot common problems | Fleet and Elastic Agent Guide [8.2] | Elastic

I follow the instructions at doc, but didn't work AT ALL

➜ bin sudo /opt/Elastic/Agent/elastic-agent uninstall

Error: can only be uninstall by executing the installed Elastic Agent at: /usr/bin/elastic-agent

For help, please see our troubleshooting guide at Troubleshoot common problems | Fleet and Elastic Agent Guide [8.2] | Elastic

Strange,

Have you tried seeing where the /usr/bin/elastic-agent binary is linked to?
It should be somewhere in /opt/Elatic/Agent and you may have better luck running directly from that binary, i.e. sudo /opt/Elastic/Agent/elastic-agent uninstall

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.