Skip to content

Uninstall

  1. In the console, open Systems, select the system and delete it. Its credential is revoked and its connection closed at once, so the agent can no longer act even if it stays installed.

  2. On the system, remove the agent:

    Linux

    Terminal window
    sudo systemctl disable --now garrison-agent
    sudo rm -f /etc/systemd/system/garrison-agent.service /etc/systemd/system/vc-agent.service
    sudo systemctl daemon-reload
    sudo rm -rf /opt/vclocal
    sudo rm -f /usr/local/share/ca-certificates/vclocal-ca.crt && sudo update-ca-certificates

    Windows (PowerShell as Administrator)

    Terminal window
    Stop-ScheduledTask -TaskName GarrisonAgent -ErrorAction SilentlyContinue
    Unregister-ScheduledTask -TaskName GarrisonAgent -Confirm:$false
    Get-Process garrison-agent -ErrorAction SilentlyContinue | Stop-Process -Force
    Remove-Item -Recurse -Force "$env:ProgramData\VCLocal"

    A system that had the Log collector role also runs Grafana Alloy; remove it with sudo systemctl disable --now alloy && sudo apt remove alloy (Linux).

There is no one-command uninstaller yet. To remove Garrison and keep the AI platform:

Terminal window
cd /opt/garrison
docker compose --env-file .env -f deployments/docker/docker-compose.yml down

Add -v to also delete Garrison’s database (cases, users, integrations, audit log). This cannot be undone.

To remove the AI platform as well: sudo oaf uninstall --yes (keeps model files and data) or sudo oaf uninstall --yes --purge (also deletes traces, metrics and dashboards).