# Leftover data - segment filter based on custom fields

**URL:** <https://forum.mautic.org/t/leftover-data-segment-filter-based-on-custom-fields/16302>\
**Category:** Product Support\
**Created:** [September 27, 2020, 9:06pm UTC](https://forum.mautic.org/t/leftover-data-segment-filter-based-on-custom-fields/16302 "2020-09-27T21:06:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![frankofno](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/frankofno/32/3455_2.png) [@frankofno](https://forum.mautic.org/u/frankofno)\
**Post date:** [September 27, 2020, 9:06pm UTC](https://forum.mautic.org/t/leftover-data-segment-filter-based-on-custom-fields/16302/1 "2020-09-27T21:06:47Z")

</div>

**Your software**  
mautic 3.1.1-rc (from github)  
php 7.3.22

**Your problem**  
“Leftover” data is showing up in a segment.  
I have a custom field called “checks” (boolean field with default to NO).  
I have a segment with filter “checks” is eual to NO

Now I have deleted some older contacts, where this field had probably no Default value of NO. Not sure, since I have deleted them. Anyway, in this segment some “Leftovers” keep showing up with no name but the geoIP infos and some tracking infos. So it looks like, not all related data to that contact is removed. Since this is just a test env, all Contacts where created from the same IP (so all geoIP is the same).

Steps I have made:  
cleared the cache.  
Removed all contacts  
Removed the custom field, created new custom field with default value NO,  
Removed and recreated the segment with the filter “checks” is equal to NO.

Still those leftover data with IP instead of names is showing up:

 ![Screenshot 2020-09-27 at 22.54.41](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/b/b5752ca34ce5134a16380a475501eb7495f4b0e9.png)

If i click on that IP it shows me a the leftover data of a non existing contact:

 ![Screenshot 2020-09-27 at 23.04.42](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/3/3739b36f64931a03eabe8a0fc0ea5603655f7b7c.png)

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [September 28, 2020, 7:13am UTC](https://forum.mautic.org/t/leftover-data-segment-filter-based-on-custom-fields/16302/2 "2020-09-28T07:13:59Z")

</div>

> <https://github.com/mautic/mautic/issues/9245>
>
> Bug Description
> Not all geoIP data associated to a contact is removed when deleting the contact.
> Your problem
> “Leftover” data is showing up in...

Connecting up the Github issue for visibility
