--- title: "Enabling Automatic Deletion of Inactive Hosts" slug: "enabling-automatic-deletion-of-inactive-hosts" updated: 2026-09-08T19:10:56Z published: 2026-09-08T19:10:56Z canonical: "docs.trellix.com/enabling-automatic-deletion-of-inactive-hosts" --- > ## 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. # Enabling Automatic Deletion of Inactive Hosts The Endpoint Security (HX) server can automatically delete inactive hosts from its processing. This removes the hosts from all Web UI screens and all Endpoint Security (HX) processing. To do this, you must enable automatic deletion of hosts and specify how long a host must be inactive before it is deleted. You can control these settings using the Web UI or the CLI. ### Enabling Automatic Deletion Using the Web UI To set up automatic deletion using the Web UI: 1. In the Web UI, select **Aging Settings** on the **Admin** menu. The Aging Settings page appears. 2. In the Host Aging area of the page, select the **Delete hosts from the database after:** option to enable automatic inactive host deletion. 3. In the **Delete hosts from the database after:** box, enter the inactivity time period after which an inactive host will be automatically deleted. Specify the inactivity period in days, hours, minutes, or seconds, or any combination of these. A minimum of one day must be specified. A maximum of 365 days can be specified. For example, `45 days 6 hours 30 minutes 15 seconds` is a valid entry. Note that `24 hours` is not a valid entry, although `1 day` is. 4. Click **Save**. ### Note If you click **Cancel**, your Host Aging settings are not saved. To discard changes and revert to default settings, after you have clicked **Save**, click **Reset to defaults** next to the **Delete hosts from the database after:** box. ### Enabling Automatic Deletion Using the CLI To set up automatic deletion using the CLI: `hostname > enable ` ``` hostname # configure terminal ``` 1. Enable the CLI configuration mode: 2. Enable automatic inactive host deletion: `hostname (config) # hx agent aging enable` 3. Specify the inactivity time period after which an inactive host will be automatically deleted: `hostname (config) # hx agent aging inactive-period <seconds>` Valid values range from 86400 seconds (one day) through 31536000 seconds (one year). The default is 7776000 seconds (90 days). To restore the default inactive host deletion interval: `hostname (config) # no hx agent aging inactive-period` 4. Verify the updated inactive host automatic deletion settings: ``` hostname (config) # show hx agent aging ``` 5. Save your settings: `hostname (config) # write mem` :