# How to clear or cancel or delete Upcoming Emails?

**URL:** <https://forum.mautic.org/t/how-to-clear-or-cancel-or-delete-upcoming-emails/17128>\
**Category:** Product Support\
**Created:** [November 24, 2020, 3:39pm UTC](https://forum.mautic.org/t/how-to-clear-or-cancel-or-delete-upcoming-emails/17128 "2020-11-24T15:39:42Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![nsxzmtm2](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/nsxzmtm2/32/636_2.png) [@nsxzmtm2](https://forum.mautic.org/u/nsxzmtm2)\
**Post date:** [November 24, 2020, 3:39pm UTC](https://forum.mautic.org/t/how-to-clear-or-cancel-or-delete-upcoming-emails/17128/1 "2020-11-24T15:39:42Z")

</div>

**Your software**  
My Mautic version is: 3.1.2  
My PHP version is: 7.3.23  
My Database type and version is: mysql

Hosting on a shared server.

**Your problem**  
My problem is that I want to stop the upcoming emails from sending.

Steps I have tried to fix the problem:

- Unpublished the emails in the queue
- Unpublished the campaign sending the emails
- Deleting the /var/cache directory
- Deleting all records from the mau\_cache table
- Deleting the /var/cache directory AGAIN

I’ve allowed time for the cron jobs to cycle through.

Still the Upcoming Emails shows the same set of emails that I don’t want to be sent.

What else can I try (in the next 24 minutes)?

Thanks!

---

<div class="post-metadata">

**Author:** ![nsxzmtm2](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/nsxzmtm2/32/636_2.png) [@nsxzmtm2](https://forum.mautic.org/u/nsxzmtm2)\
**Post date:** [November 24, 2020, 9:14pm UTC](https://forum.mautic.org/t/how-to-clear-or-cancel-or-delete-upcoming-emails/17128/2 "2020-11-24T21:14:24Z")

</div>

To buy time, I changed the SMTP settings to prevent the incorrect messages from being sent.

Of course, when I re-configure it to run, they will be sent unless they are cleared or deleted first.

What do you suggest?

Thanks!

---

<div class="post-metadata">

**Author:** ![led.dhany](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/led.dhany/32/486_2.png) [@led.dhany](https://forum.mautic.org/u/led.dhany)\
**Post date:** [March 25, 2021, 12:09pm UTC](https://forum.mautic.org/t/how-to-clear-or-cancel-or-delete-upcoming-emails/17128/3 "2021-03-25T12:09:51Z")

</div>

i have same problem any help?

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [March 25, 2021, 2:06pm UTC](https://forum.mautic.org/t/how-to-clear-or-cancel-or-delete-upcoming-emails/17128/4 "2021-03-25T14:06:46Z")

</div>

If your emails are set to queue the only way I know of doing this is via the terminal.

You would need to ssh into your terminal (maybe you can do this from cpanel file manager as well - never tried) and navigate to the spool directory, usually sitting in /var/www/mautic/var/spool/

You will then need to remove the spool.

Funny thing with the spool is there are files that are created with a hyphen “-” at the beginning of the file name and the regular rm command does not like this, so what you will need to do is the following command  
sudo rm -rf – -\* [This will remove all the files that start with a -]  
then you will need to remove the rest  
sudo rm -rf \*

---

<div class="post-metadata">

**Author:** ![led.dhany](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/led.dhany/32/486_2.png) [@led.dhany](https://forum.mautic.org/u/led.dhany)\
**Post date:** [March 25, 2021, 10:56pm UTC](https://forum.mautic.org/t/how-to-clear-or-cancel-or-delete-upcoming-emails/17128/5 "2021-03-25T22:56:42Z")

</div>

thank you for your respon. Now my spool folder is empty. And i’ve stop my campaign but:

1. why on my mautic dashboard, still show upcoming emails?  
 ![mautic](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/c/c5260d8a44fcb2289e646416e246ebd6676b3103.png)
2. When i create new email campaign to 3 emails, it said that the email was successfully sent. But, only 1 email receive the email campaign.  
 ![campaign](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/0/068f53990ae98f0b26d5c43a20ed1d8b7b4e9d38.png)  
Sent Report  
 ![Report](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/c/cad237c852413a7eee02ee8c3ed8625e2a6e9bb6.png)  
There is no log  
 ![log](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/6/602650c4bbcd9b0f1dfdf183891023a56680feaa.png)  
my cronjob  
 ![cronjob](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/a/a762cbbfa247d35c1dea6d1ee7fb26bc5edc2db3.png)

Any suggestions?

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [March 26, 2021, 7:18am UTC](https://forum.mautic.org/t/how-to-clear-or-cancel-or-delete-upcoming-emails/17128/6 "2021-03-26T07:18:13Z")

</div>

Hi,  
I just have a comment about your cronjobs. You are running them at the same momment.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/f/f6c4f7730f15197a2dd9baa9be4d345337f5add3.png)

---

<div class="post-metadata">

**Author:** ![led.dhany](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/led.dhany/32/486_2.png) [@led.dhany](https://forum.mautic.org/u/led.dhany)\
**Post date:** [March 27, 2021, 1:11pm UTC](https://forum.mautic.org/t/how-to-clear-or-cancel-or-delete-upcoming-emails/17128/7 "2021-03-27T13:11:32Z")

</div>

Thank you @joeyk for your answer. Because i’m still learning about mautic, and have no programming or linux knowledge. But eager to learn

I fixed the cron job, so, is it the better configuration or there is still need to be corrected?

 ![Mautic](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/2/259101a082cd3e551134263620595a73040caa0c.png)

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [March 29, 2021, 5:16am UTC](https://forum.mautic.org/t/how-to-clear-or-cancel-or-delete-upcoming-emails/17128/8 "2021-03-29T05:16:09Z")

</div>

Yep, much better. Good job.

---

<div class="post-metadata">

**Author:** ![led.dhany](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/led.dhany/32/486_2.png) [@led.dhany](https://forum.mautic.org/u/led.dhany)\
**Post date:** [March 29, 2021, 5:37am UTC](https://forum.mautic.org/t/how-to-clear-or-cancel-or-delete-upcoming-emails/17128/9 "2021-03-29T05:37:37Z")

</div>

Thank you for your help @joeyk
