Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 818 Bytes

31-Uninstall-Agent.md

File metadata and controls

24 lines (17 loc) · 818 Bytes

Uninstalling the Icinga 2 Agent

While it is quite handy to automaticly install and configure the Icinga 2 Agent, it might also become necessary to remove the Agent from the system, including all components installed.

For this reason the module also provides the possibility to uninstall the Agent and to remove the Program Data directory from the system in which certificates and configurations are stored.

Full uninstallation

This example will uninstall the Agent and remove the Program Data Directory as well. If you want to keep that, you can remove the argument '-FullUninstallation'

    $icinga = Icinga2AgentModule -FullUninstallation

    exit $icinga.uninstall();

Shorten the call

    exit Icinga2AgentModule -FullUninstallation -RunUninstaller;