Uninstall the Windows agent

To remove Axoflow agent from a Windows host, complete the following steps.

  1. Open a PowerShell terminal as Administrator on the Axoflow agent host, and stop the axolet and axoflow-otel-collector services:

    Terminal window
    sc.exe stop axolet
    sc.exe stop axoflow-otel-collector

    Uninstalling the packages stops these services as well. Stopping them first makes sure that Axolet doesn’t register the host again after you delete it from AxoConsole, and that nothing writes to the data directories while you remove them.

  2. Delete the host from AxoConsole, so AxoConsole stops managing it.

    1. Open AxoConsole and select Sources. Alternatively, select ⌘/Ctrl + K, then enter the name of the host.
    2. Select the name of the host.
    3. Select ⋮ Host Options > Delete.
    4. Select Delete and revoke. Revoking the host prevents it from registering again with its current identity. If you plan to reinstall on the same host later, select Delete to keep the registration.
  3. Uninstall the Axoflow agent and Axolet packages:

    Terminal window
    Uninstall-Package -Name "Axoflow OpenTelemetry Collector" -Force
    Uninstall-Package -Name "Axoflow Axolet" -Force

    Alternatively, uninstall Axoflow OpenTelemetry Collector and Axoflow Axolet from Settings > Apps > Installed apps (or Control Panel > Programs and Features on Windows Server).

  4. (Optional) Delete the data and the configuration of Axoflow agent. The packages don’t remove these, so you can reinstall Axoflow agent and keep its data.

    CAUTION:

    Hazard of data loss!

    C:\ProgramData\Axoflow\OpenTelemetry Collector\storage contains the disk buffer of Axoflow agent: logs that it collected but hasn’t delivered to AxoRouter yet. Deleting this directory permanently deletes these logs. Make sure that you don’t need this data before running the command.

    If you don’t plan to reinstall it, run:

    Terminal window
    Remove-Item -Recurse -Force "C:\ProgramData\Axoflow\OpenTelemetry Collector", "C:\ProgramData\Axoflow\axolet"
    Remove-Item -Force "C:\Windows\Temp\axolet.log" -ErrorAction SilentlyContinue

    If the C:\ProgramData\Axoflow folder is empty afterward, you can delete it as well.