Cannot uninstall endpoint agent

I cannot uninstall the agent from a specific endpoint.

The terminal command goes through and then forever hangs on the stopping service message. It appears to be running but never gets pass it.

If I cannot uninstall , is it possible to do a new installation and add the endpoint to a new server ?

I would try to use the global flags to get more output

Anyway, since you're posting in Elastic Security I guess you have Elastic Defend in the policy, so I would suggest to try removing the Endpoint service first