--- title: "Flushing emails from the email queue using the CLI" slug: "flushing-emails-from-the-email-queue-using-the-cli" tags: ["Product Usage", "EX 11.x", "FX 11.x", "AX 11.x", "NX 11.x", "Network Security"] updated: 2026-08-24T19:52:57Z published: 2026-08-24T19:52:57Z canonical: "docs.trellix.com/flushing-emails-from-the-email-queue-using-the-cli" stale: true --- > ## 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. # Flushing emails from the email queue using the CLI Use the CLI commands in this topic to flush one email or all emails from the queue. **To flush a single email from the queue:** 1. Go to CLI configuration mode. ``` hostname > enable hostname # configure terminal ``` 2. Locate the message queue identification number of the email. ``` hostname (config) # show email-analysis message-queue --Queue Type--   --Queue ID--    --Size--     --Arrival Time--     --Sender--                        --Recipient--                      --Error-- deferred        4364lK4zv2zMtrG9  1102       Fri Nov 30 11:51:25        customnoticeaddress@king.com                       king@king6.com   (delivery temporarily suspended: connect to 2001:470:84a7:3066:2e0:81ff:fec3:4a4[2001:470:84a7:3066:2e0:81ff:fec3:4a4]:25: Connection refused) deferred        4364lK57tQzMtr5X   1102      Fri Nov 30 11:51:25        customnoticeaddress@king.com                       king@king6.com   (delivery temporarily suspended: connect to 2001:470:84a7:3066:2e0:81ff:fec3:4a4[2001:470:84a7:3066:2e0:81ff:fec3:4a4]:25: Connection refused) deferred        436B5x11h0zMtr4W   1221      Fri Nov 30 11:51:25        customnoticeaddress@king.com                       king@king6.com    (connect to 2001:470:84a7:3066:2e0:81ff:fec3:4a4 [2001:470:84a7:3066:2e0:81ff:fec3:4a4]:25: Connection refused) deferred       436B5x1NgSzMtr5W    1221      Fri Nov 30 11:51:25        customnoticeaddress@king.com                       king@king6.com        (connect to 2001:470:84a7:3066:2e0:81ff:fec3:4a4 [2001:470:84a7:3066:2e0:81ff:fec3:4a4]:25: Connection refused) deferred       4364lJ46HFzMtr55    1102      Fri Nov 30 11:51:24        customnoticeaddress@king.com                       king@king6.com   (delivery temporarily suspended: connect to 2001:470:84a7:3066:2e0:81ff:fec3:4a4[2001:470:84a7:3066:2e0:81ff:fec3:4a4]:25: Connection refused) ``` 3. Specify the message queue identification number you want to flush. ``` hostname (config) # email-analysis flush-message queue-id ``` 4. Verify the status of the queue. ``` hostname (config) # show email-analysis message-queue ``` **To flush all the emails from the queue:** 1. ``` hostname > enable hostname # configure terminal ``` 2. Flush all the emails from the queue. ``` hostname (config) # email-analysis flush-message all ``` 3. Verify the status of the queue. ``` hostname (config) # show email-analysis message-queue --Queue Type--  --Queue ID--  --Size-- --Arrival Time--    --Sender--            --Recipient--                     --Error-- ```