How can we help?

Uninstalling the Auvik Collector from an Ubuntu 22.04 machine

Follow

To uninstall the Auvik collector from an Ubuntu 22.04 machine, you’ll generally reverse the installation steps—stopping its service and removing the package and repository. Ubuntu doesn’t offer a one‑click uninstaller for Auvik, so here’s a reliable manual approach:

 

1. Stop and disable the Auvik service

First, stop the collector and disable it to prevent it from restarting:

sudo systemctl stop auvik-agent.service

sudo systemctl disable auvik-agent.service

If it was installed via a script, the service might have a different name—check with:

systemctl list-units | grep auvik

2. Remove the Auvik package

If Auvik was installed via an APT repository, you can remove it like this:

sudo apt purge auvik-agent

sudo apt autoremove

The purge command removes the package and its configuration files, while autoremove clears out any dependencies no longer needed 

If installation didn’t register as a package, you can try removing by path:

sudo rm -rf /opt/auvik-agent

Or check with:

dpkg -l | grep auvik

and then:

sudo dpkg -P <package-name>

for a package-level removal 

3. Remove Auvik APT repository and GPG key

If you added Auvik’s custom repository (e.g., apt.my.auvik.com for Ubuntu 22.04), it’s best to remove it:

sudo rm /etc/apt/sources.list.d/auvik*.list

sudo apt-key list | grep -i auvik

Then identify and delete the associated key under /etc/apt/trusted.gpg.d/ or /usr/share/keyrings/.

Afterward, update APT:

sudo apt update

4. Clean up leftover files (optional)

To ensure all data is cleared, you can remove logs and directories:

sudo rm -rf /var/log/auvik

sudo rm -rf /etc/auvik

Check those paths first to make sure they exist.

5. Verify removal

Run these to ensure there’s nothing left from Auvik:

systemctl status auvik-agent.service

dpkg -l | grep auvik

ls /opt | grep auvik

If all commands show no results or “not found,” the collector has been fully removed.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request