Hi All, I'm trying to use the following query "C:\Program Files\Elastic\Agent\elastic-agent.exe uninstall" to uninstall the Elastic agent on many devices, if I run that script on one device it uninstall the agent successfully but it requires users interference the users needs to type Y to approve the uninstall, is there any way to do this silently? Thanks
Hello and welcome,
Yes, you need to use --force
.
Per the documentation.
--force
Uninstall Elastic Agent and do not prompt for confirmation. This flag is helpful when using automation software or scripted deployments.