--- title: "clean_infection key" slug: "clean-infection-key" updated: 2026-09-08T19:10:56Z published: 2026-09-08T19:10:56Z canonical: "docs.trellix.com/clean-infection-key" --- > ## 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. # clean_infection key The `clean_infection` key allows you to enable or disable the removal of malware infections from files in quarantine. Valid values are `true` (enabled) or `false` (disabled). The default is `false`. When you enable the `clean_infection` key, Trellix Endpoint Security (HX) xAgent malware protection engine removes malware infections from files after they are placed in quarantine. If the clean_infection key value is `true`, you must also set the following key values to `true`: - Malware Detection [enable Key](/docs/enable-key) - Quarantine [enable Malware Quarantine Key](/docs/enable-malware-quarantine-key) ### Important If the malware detection `enable` key and the quarantine `enable` key are not enabled, the `clean_infection` key value is ignored. Change this setting using one of the following methods: - Web UI (see [Cleaning Quarantined Files](/docs/cleaning-quarantined-files) ). - API custom configuration channels (see [Using API Custom Configuration Channels](/docs/using-api-custom-configuration-channels)). - Manually on individual endpoints using a text editor (see [Modifying the Configuration File for a Single Endpoint](/docs/modifying-the-configuration-file-for-a-single-endpoint)). :