--- title: "Purge events by query" slug: "purge-events-by-query" tags: ["Product Usage", "ePolicy Orchestrator – On-prem", "ePO 5.10.x", "ePO 5.10.0"] updated: 2026-09-07T17:45:37Z published: 2026-09-07T17:45:37Z canonical: "docs.trellix.com/purge-events-by-query" --- > ## 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. # Purge events by query You can use a custom configured query as a base to delete client events. You must have created a query to find the events you want purged before you start this task. There are reasons why you might need to purge data or events based on a query. For example, there can be many specific events overwhelming your database. In this example, you might not want to wait for the event to age out if you are keeping your events for six months. Instead you want that specific event deleted immediately or nightly. Purging these events can significantly improve the performance of your ePO - On-prem server and database. Configure purging data based on the results of a query. For details about product features, usage, and best practices, click ? or Help. 1. Select **Menu** → **Automation** → **Server Tasks**, then click **Action** → **New Task** to open the **Server Task Builder**. 2. Type a name for the task, for example `Delete 1059 client events`, then on the **Actions** tab, click **Purge Client Events** from the Actions list. 3. Click **Purge by Query**, then select the custom query that you created. > [!NOTE] > Note > > This menu is automatically populated when table queries are created for client events. 4. Schedule the task to run every day during non-business hours, then click **Save**.