We're experiencing difficulty. Our engineers are on it. Please check status.mailgun.com for real-time updates.

How can I delete emails that are queued for delivery?

Article Preview

    Overview

    Perhaps you've scheduled a message for future delivery but later realized the wrong date and time were specified.  Or maybe you've seen a large number of retries enqueued because of mistyped addresses in your Logs, but didn't know how to stop them from piling up.  Hopefully you've never had the headache of accidentally submitting a massive amount of messages to the wrong list, or the misfortune of creating an infinite sending loop through an accidental code deploy. 

    However, if you have - don't worry! We'll guide you through what you need to do.

     

    The solution to all that ails you

    The Clear Domain Queue feature available for every domain is the solution for any and all of the above situations.  If you press this button, all enqueued messages for that domain will be deletedmailing list sending, batch sending, scheduled sending, and emails that have temporarily failed but are still within our retry window.  So, if you've recently performed any of the aforementioned types of sending, any and all emails remaining to be processed for that domain will be completely wiped from our system.   

     

    Clearing the email queue

    We'll show you how to do this below (there's actually two methods).

     

    Method 1

    1. First, log in to the Mailgun Control Panel (if you have not already done so).
    2. Then, within the left-hand navigation pane, click the Sending option.
      MG.SideNavigation.png
    3. Next, click the gear icon, which is located on the right-end of the row for the domain that needs the queue cleared.
      SendingOptionDomainsSuboptionDomainList.png
    4. Select the Clear domain queue option and confirm your intention to clear the queue by clicking the Clear queue button in the pop-up modal.
      1. Note: if your user's permissions are not "Admin", you cannot clear the domain's queue.
        SendingOptionDomainsSuboptionCogOptions.pngModal_FlushQueue.png

     

    Method 2

    1. First, log in to the Mailgun Control Panel (if you have not already done so).
    2. Then, within the left-hand navigation pane, click the Sending option to expand its list of suboptions.
    3. Next, click the Domain settings suboption.
      MG.SideNavigation.png
    4. Ensure that the domain for which you wish to clear the queue is displayed within the Domain drop-down list towards the upper-right portion of the page.
      DomainSelector.png
    5. Near the bottom of the page, locate the Advanced section and the Clear domain queue setting.
      SendingOptionDomainSettingsSuboptionAdvancedSection.png
    6. Click the Clear queue button and confirm your intention to clear the queue by clicking the Clear queue button in the pop-up modal. 
      SendingOptionDomainSuboptionAdvancedSectionQueueFlushModal.png

     

    One last note before you go

    It is important to note that the amount of time required to clear the domain's queue will vary based on the number of enqueued messages. Therefore, if a domain has thousands of messages enqueued, the deletion of all enqueued messages will not be instantaneous

     

    Need Support?

    Our Support Team here at Sinch Mailgun is happy to help! Reach out to us in the Support section of your Mailgun Control Panel, and we'll be with you shortly!