For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Uninstalling the agent

Uninstalling uses the same method as installation.

If you installed from packages, uninstall it with your package manager.

If you installed from source, run the uninstall script from the setup directory you used during installation.

Linux / macOS (source install)

sudo sh setup/linux/uninstall.sh

Options:

  • -S, --silent: non‑interactive

  • -y, --yes : auto‑confirm

  • -D, --hard-delete: remove config, logs, and data

Without --hard-delete, the config directory and data and log files are kept.

Notes:

  • Uninstall log: setup/linux/uninstall.log (written next to uninstall.sh).

  • For macOS, if a LaunchDaemon is installed, it is stopped and removed.

Windows

  • Use Apps & Features or run the uninstaller in the install directory: C:\Program Files\OCS Inventory Agent\unins000.exe

Notes:

  • The uninstaller stops and removes the OCSInventory-Service service.

  • It attempts to remove C:\ProgramData\OCSInventory-Agent\. If files remain (config, logs, or data), remove the folder manually for a clean uninstall.

Last updated