Open nimarezainia opened 3 weeks ago
Pinging @elastic/fleet (Team:Fleet)
Thanks @nimarezainia. Also, Uninstall needs to be added to bulk actions. It's currently only in the ...
menu.
Another limitation is that unprivileged agents won't be able to uninstall themselves because they aren't root/admin and therefore aren't able to completely remove the agent service.
👀
Fleet action to "uninstall" should remove the agent from the host.
Once the agent is uninstalled, it will appear offline in the Fleet UI (missed checkin) and then at some interval unenrolled. There's no need to also unenroll the agent from Fleet as part of this uninstall action. Rather rely on this state machine to remove the agent as it will abide by the specific timeouts configured on the owning agent policy.