--- title: "Include or exclude files from a scan" slug: "include-or-exclude-files-from-a-scan" tags: ["Product Usage", "SaaS"] updated: 2026-09-01T09:27:23Z published: 2026-09-01T09:27:23Z canonical: "docs.trellix.com/include-or-exclude-files-from-a-scan" --- > ## 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. # Include or exclude files from a scan You can choose to include or exclude certain files when scanning a repository for more granular results. You can set this option when you are creating a scan or when you edit an existing scan from the **Scan Management** page. 1. On the **Scan Management** page, select a scan or click **New Scan**. The details of the scan appear on the right pane. 2. Go to **Filters**. Options to specify files to be included or excluded from the scans are displayed. 3. Select files to be included in the scan. - Select **All Files** to scan all files in the repository. This is the default option. - Select **Specific Files** to include only specific files or file types in the scan. Click **Add from Catalog** to open the **File Information** pane on the right. Select the file type from the **File Information** pane, then click **+** to add them as a filter. 4. Select files to be excluded from the scan. - Select **Nothing** to scan all files in the repository. This is the default option. - Select **Specific Files** to exclude only specific files or file types in the scan. Click **Add from Catalog** to open the **File Information** pane on the right. Select the file type, then click **+** to add them as a filter. 5. (Optional) To add or edit file information definitions: To view the newly created file information, refresh the **Scan Management** page. 1. In the **File Information** pane, from the three-dots menu, click **Manage** to open the **Classification** → **Definitions** → **File Information** page on a separate tab. 2. Select **Actions** → **New Item** and replace the default name with a unique name for the definition. 3. Select properties to use as filters and fill in the **Comparison** and **Value** details. Click **Save**. 6. On the **Scan Management** page, click **Save** and **Apply Policy**. During the scan, only files mentioned in the **Include** filters are scanned while files or file types mentioned in the **Exclude** filters are ignored.