How to empty mail queue?

Running Debian packages for XWiki 13.6, and MySQL database.

Looking at my settings “Mail / Mail Sending Status” I see a ton of failed mail, and I don’t want to allow them to get sent/resent before I reconfigure this.

Is there any way to clear that queue so I can start over clean? Thanks in advance.
-Alan

Hi, we currently don’t have a UI for it, see https://jira.xwiki.org/browse/XWIKI-11653

For now you can check the scripting API at https://extensions.xwiki.org/xwiki/bin/view/Extension/Mail/MailSenderStorageAPI

Thus, you can put the following in a wiki page (with a user having Admin rights):

{{velocity}}
#if ("$!request.confirm" == '1')
  #set ($mailResult = $services.mail.storage.deleteAll())
  All mails and statuses have been deleted!
#else
  [[Delete all>>||queryString="confirm=1"]]
#end
{{/velocity}}
1 Like

@ vmassol thanks very much for your response! I was able to clear the status with your suggestion.
-Alan