--- title: "Delete inactive systems: best practice" slug: "delete-inactive-systems-best-practice" tags: ["Product Usage", "ePolicy Orchestrator – On-prem", "ePO 5.10.x", "ePO 5.10.0"] updated: 2026-09-07T17:46:26Z published: 2026-09-07T17:46:26Z canonical: "docs.trellix.com/delete-inactive-systems-best-practice" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Delete inactive systems: best practice Use the **Inactive Agent Cleanup** server task with the preconfigured query named **Inactive Agents** to automatically delete inactive systems. You must have enabled or duplicated the **Inactive Agents** query. > [!NOTE] > Note > > Deleting a system from the **System Tree** deletes only the record for that system from the ePO - On-prem database. If the system physically exists, it continues to perform normally with the last policies it received from the ePO - On-prem server for its applicable products. For details about product features, usage, and best practices, click ? or Help. 1. To create a duplicate of the **Inactive Agent Cleanup Task**, select **Menu** → **Automation** → **Server Tasks**, then find the **Inactive Agent Cleanup Task** in the server tasks list. 2. Click the preconfigured **Inactive Agent Cleanup Task**, click **Actions** → **Duplicate**. 3. In the **Duplicate** dialog box, change the server task name, then click **OK**. 4. In the server task row you created, click **Edit** to display the **Server Task Builder** page. 5. From the **Descriptions** tab, type any needed notes, click **Enabled** in **Schedule status**, then click **Next**. 6. From the **Actions** tab, configure these settings: 1. From the **Actions** list, select **Run Query**, 2. For **Query**, click **...** to open the **Select a query from the list** dialog box. 3. Click the group tab where you saved your copy of the **Inactive Agents** query, select your query, then click **OK**. 4. Select your language. 5. In **Sub-Actions**, select **Delete Systems** from the list. > [!WARNING] > Caution > > Do **not** click **Remove agent**. This setting causes ePO - On-prem to delete the Trellix Agent from the inactive systems when they are removed from the System Tree. Without the agent installed, when the removed system reconnects to the network it cannot automatically start communicating with the ePO - On-prem server and reinsert itself back into the System Tree. (Optional) Instead of using the default subaction **Delete Systems**, you can select **Move Systems to another Group.** This moves the systems found by the query to a designated group, for example, **Inactive Systems** in your **System Tree**. 7. Click **Next**, schedule when you want this server task to run, then save the server task. Now any inactive systems are automatically removed from the ePO - On-prem server, and your system compliance reports provide more accurate information.