I never saw the data in Kibana-Observability-APM so I tried to uninstall the elastic-agent from power shell and it did not let me so I deleted manually the folders folder from C:\ProgramFiles\Elastic\Agent and stop the service.
Now I try to install the elastic agent again and it gives me the following error:
Elastic Agent is installed but currently broken: service exists but installation path is missing
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.