How to delete mails from the outbound queue in Jira Data Center
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
You may need to delete (not flush) the mail from the queue. Learn how to delete emails from the outbound queue in Jira Data Center to ensure proper email management and resolution of stuck or pending notifications.
Environment
All versions of Jira 7.x, 8.x, 9.x, and 10.x
Solution
A built-in solution has ben requested and can be tracked here:
Please vote, watch and comment if this impacts you.
Workaround
Jira outbound email is stored in memory. To clear the Jira sending mail queue, restart Jira.
In Data Center, outbound email is also stored in memory. Every node maintains its own queue.
You will need to inspect the outgoing mail queue on each node and see which one has the large number of emails. This node has to be restarted.
If all nodes have thousands of emails queued, do a rolling cluster restart (one node at a time) — you don't need to stop all nodes together.
Following a Jira restart, all queued outgoing email will be cleared. There's no way to selectively clear email and leave others in the queue.
Was this helpful?