# Contacts still in campaign after removal

**URL:** https://forum.mautic.org/t/contacts-still-in-campaign-after-removal/14119
**Category:** Product Support
**Created:** [April 30, 2020, 2:24pm UTC](https://forum.mautic.org/t/contacts-still-in-campaign-after-removal/14119 "2020-04-30T14:24:53Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![alexrm1x](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/alexrm1x/32/2500_2.png) [@alexrm1x](https://forum.mautic.org/u/alexrm1x)
#### Post date: [April 30, 2020, 2:24pm UTC](https://forum.mautic.org/t/contacts-still-in-campaign-after-removal/14119/1 "2020-04-30T14:24:53Z")

</div>

**Your software**  
My Mautic version is: 2.16.2  
My PHP version is: 5.6 (tried 7.2 but cron jobs do not execute)

**Your problem**  
My problem is: Cannot remove contacts from campaign. Contact still receive future emails

These errors are showing in the log: No errors in the logs.

Steps I have tried to fix the problem:  
Create a campaign with two branches… one for detection of site visit (calendy booking)…Calendy booking is detected OK in Mautic and I add “Leave this Campaign”, “Move Segment” and “Move to other stage”… all events are detected in the Contact details…segment is changed and stage is changed…  
“Leave this Campaign” also appears in the Contact log, however…:  
Contact still receives future emails  
Contact still appears in Campaign - Contacts panel.

Thanks for your support!

Alejandro.-

 ![2020-04-30_15-53-31 2](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/2/2d5dd348db90857abc36242a56834e638f0ebf84.jpeg) ![2020-04-30_16-01-01](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/8/8ab4fab2d1d609abfc1cec7f71181d4c9c7ac752.jpeg) ![2020-04-30_16-25-27 2](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/7/7fe802096fc51f6ada04a59686748444737cac2e.jpeg)

---

<div class="post-metadata">

### Author: ![alexrm1x](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/alexrm1x/32/2500_2.png) [@alexrm1x](https://forum.mautic.org/u/alexrm1x)
#### Post date: [May 24, 2020, 12:51pm UTC](https://forum.mautic.org/t/contacts-still-in-campaign-after-removal/14119/2 "2020-05-24T12:51:53Z")

</div>

Hello,

Issue still exists in version 2.16.2 I’m using (PHP 7.3).

and looks related or a Regression of BUG #6407 : 'Change Campaigns" action not removing contact from “this” campaign #6407

> <https://github.com/mautic/mautic/issues/6407>
>
> Please DO NOT report security vulnerabilities here. Send them to security@mautic.com instead.
> What type of report is this:
> 
> Q
> A
> 
> 
> Bug report?
> X
> 
> Feature request?
> 
> Enhancement?
> 
> 
> Description:
> The change campaigns...

Repro:  
Create a Campaign (origin based in Segment)  
Add test user (contact) to campaign  
Contact visits URL to trigger actions like: Change Stage, Move Segment and Exit Campaign (all these events are recognised OK in the Contact history)  
Contact details shows events triggered for removal…  
BUT:  
Campaign - Details - Contacts: still shows contact listed in the campaign  
&  
Contact - Upcoming Events still shows future events (future emails are sent, despite the contact already was removed from the campaign).

My troubleshooting:  
I put a Condition (Condition based on a contact segments TYPE) before every single email sent in the campaign checking if the Contact was in the campaign.

Thanks,

Alejandro.-
