# Remove emails from send queue?

**URL:** https://meta.discourse.org/t/remove-emails-from-send-queue/44205
**Category:** Support
**Created:** [May 13, 2016, 6:32pm UTC](https://meta.discourse.org/t/remove-emails-from-send-queue/44205 "2016-05-13T18:32:49Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![MrSteve](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mrsteve/32/42300_2.png) [@MrSteve](https://meta.discourse.org/u/MrSteve)
#### Post date: [May 13, 2016, 6:32pm UTC](https://meta.discourse.org/t/remove-emails-from-send-queue/44205/1 "2016-05-13T18:32:49Z")

</div>

I had Discourse running for several months without emails working. This was fine for the time, but now I’m trying to get emails working and there’s a huge backlog of unsent messages. I’m using SES and I’m about to take my SES account out of “sandbox” mode with Amazon.

I want to prevent a big spike of old emails from being sent, though. I can see from various logs that Discourse is trying to send a TON of emails (which luckily are still being rejected by Amazon). Can I get a magic query or something to make Discourse to chill out and stop worrying about the old emails?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [May 13, 2016, 6:38pm UTC](https://meta.discourse.org/t/remove-emails-from-send-queue/44205/2 "2016-05-13T18:38:36Z")

</div>

I think there is a way to do this from the Ruby command line @zogstrip?

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [May 13, 2016, 9:01pm UTC](https://meta.discourse.org/t/remove-emails-from-send-queue/44205/3 "2016-05-13T21:01:42Z")

</div>

I would flush (🚽) redis with

```bash
# ssh into your server
cd /var/discourse
./launcher enter app
redis-cli flushall

```

---

<div class="post-metadata">

### Author: ![MrSteve](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mrsteve/32/42300_2.png) [@MrSteve](https://meta.discourse.org/u/MrSteve)
#### Post date: [May 13, 2016, 11:05pm UTC](https://meta.discourse.org/t/remove-emails-from-send-queue/44205/4 "2016-05-13T23:05:57Z")

</div>

Super. Seems to have settled everything down. Thanks! 🙂

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [May 14, 2016, 6:51am UTC](https://meta.discourse.org/t/remove-emails-from-send-queue/44205/5 "2016-05-14T06:51:09Z")

</div>


