Deleting emails from the email queue using the CLI

Prev Next

Use the CLI commands in this topic to delete one email or all emails from the email queue.

To delete a single email from the email queue:
  1. Go to CLI configuration mode.

    hostname > enable
    hostname # configure terminal
  2. Locate the message queue identification number you want to delete.

    hostname (config) # show email-analysis message-queue
    --Queue Type--  --Queue ID--  --Size--  --Arrival Time--  --Sender--
                           --Recipient--                --Error--
    hold      4364C21mv6zMtqb1    2053  Fri Nov 30 11:26:54  root@hearst.at2.com
                     king@king6.com
    hold       4364C22JqkzMtqd3    2053  Fri Nov 30 11:26:54  root@hearst.at2.com
                    king@king6.com
    hold       4364C21FD7zMtqZ6    2053  Fri Nov 30 11:26:54  root@hearst.at2.com
                    king@king6.com
    hold       4364C22s1MzMtqdb    2053  Fri Nov 30 11:26:54  root@hearst.at2.com
                    king@king6.com
    hold       4364C20hTDzMtqYk  442856  Fri Nov 30 11:26:54  root@hearst.at2.com
                    king@king6.com
    hold       4364C13rznzMtqfW    2495  Fri Nov 30 11:26:53  root@hearst.at2.com
                    king@king6.com
    hold       4364C170QxzMtqWD    2437  Fri Nov 30 11:26:53  root@hearst.at2.com
                    king@king6.com
  3. Specify the message queue identification number you want to delete.

    hostname (config) # email-analysis delete-message queue-id <id>
  4. Verify the status of the email queue.

    hostname (config) # show email-analysis message-queue
To delete all the emails from the email queue:
  1. hostname > enable
    hostname # configure terminal
  2. Delete all the emails from the email queue.

    hostname (config) # email-analysis delete-message all
  3. Verify the status of the email queue.

    hostname (config) # show email-analysis message-queue
    --Queue Type--  --Queue ID--  --Size-- --Arrival Time--    --Sender--            --Recipient--                     --Error--