Skip to main content
Skip table of contents

Removing an Agent from Linux

Last Updated: 2024-09-14

Purpose

This article how to remove an agent from Linux.

Introduction

The Removing an Agent from Linux feature explains how to fully uninstall the agent from a Linux host and remove its registration from the portal. It covers stopping the agent service, removing packages or binaries, cleaning residual data, and deleting the agent record from the system. This ensures your environment is kept clean of defunct agents, prevents unauthorized scanning of decommissioned hosts, and keeps your asset inventory accurate.

Removing an Agent from Linux

To uninstall agents from a Linux workstation:

  1. Open a Terminal, type sudo systemctl stop o24-agent.service and press Enter to stop the O24 Agent service.

    BASH
    sudo systemctl stop o24-agent.service

  1. Next, type sudo dpkg -r o24-agent and press Enter to remove the O24 Agent.

    BASH
    sudo dpkg -r o24-agent

  1. Next, type sudo rm -r -f /etc/o24-agent and press Enter to remove the directory.

    BASH
    sudo rm -r -f /etc/o24-agent

  1. Next, type sudo rm -r -f /var/cache/o24-agent and press Enter to remove the directory.

    BASH
    sudo rm -r -f /var/cache/o24-agent

  1. Next, type sudo rm -r -f /etc/o24-agent.conf.d and press Enter to remove the directory.

    BASH
    sudo rm -r -f /etc/o24-agent.conf.d

Continue to remove the agent from Outscan as described below using either the Netsec Classic view or the Portal view.

In Netsec

To remove an agent from the targets in Netsec:

  1. Go to Netsec > Manage Targets.

  2. Select the agent that should be removed.

  3. Click - Delete.

  4. Click the Selected targets button and confirm.

In the Portal

To remove an agent from the targets in the Portal:

  1. Go to Assets > Agents.

  2. Select the agent.

  3. Right click on the selected row and select Delete.

Agents (2).png




Copyright

© 2025 Outpost24® All rights reserved. This document may only be redistributed unedited and unaltered. This document may be cited and referenced only if clearly crediting Outpost24® and this document as the source. Any other reproduction and redistribution in print or electronically is strictly prohibited without explicit permission.

Trademark

Outpost24® and OUTSCAN™ are trademarks of Outpost24® and its affiliated companies. All other brand names, product names or trademarks belong to their respective owners.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.