Elastic Agent Uninstall

Hello Community.

I’m working on the training lab and I’m trying to configure the elastic agent with the Fleet.

Unfortunately I’m stuck on:

(elastic) elastic@ip-172-31-46-39:/usr/bin$ sudo /opt/Elastic/Agent/elastic-agent uninstall
Error: can only be uninstalled 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.8] | Elastic
(elastic) elastic@ip-172-31-46-39:/usr/bin$

So I tried to:

(elastic) elastic@ip-172-31-46-39:/usr/bin$ sudo /usr/bin/elastic-agent uninstall
[sudo] password for elastic:

But Into the lab enviromnet I guess I don’t have the password.

So I tried to download back the zip and reinstall it without any success.

How can I unstuck for going over?

Thanks,
M.