Skip to main content
Solved

Delete customer.io user

  • March 9, 2025
  • 5 replies
  • 175 views

Forum|alt.badge.img+1

Hi, 
I’m trying to delete customer.io user using the following code:

track({  userId: <userId>,  event: 'User Deleted',})

This is working fine if directly sent to customer.io using its analytics library, but using Segment it reach customer.io as an event without taking action. can you help to suggest a way to delete user using Segment.

Regards

Best answer by Wouter Hol

Hi Husam,

It seems that you have not selected Delete Person but instead chose Track Event, as this is the screen to map event properties.

On the mappings screen, you can click add mapping. Then, scroll down and click Delete Person
 

Clicking this and saving it will automatically map the User Deleted event to the Delete Person action. It should look like this on the overview of mappings:

 

5 replies

Forum|alt.badge.img+4
  • March 10, 2025

Hi Husam,

Are you using the Customer.io Actions Destination? https://segment.com/docs/connections/destinations/catalog/actions-customerio/

In that destination, you can set Actions. One of the Actions is Delete Person. To use this, in the mappings of the destination, you select the Action Delete Person. Then you set the User Deleted event as the trigger. That should delete the user if you send the event to the Customer.io Actions Destination.

Hope this helps!


Forum|alt.badge.img+1

Hi Wouter,
Thanks for the reply.
actually, I did the same as mentioned and I see the mapping is the same as you described:

but I’m receiving the event in customer.io in different form. it didn’t remove the user but received as usual event. see the second screenshot
 

 


Forum|alt.badge.img+1

I hope you can help me to understand the exact issue


Forum|alt.badge.img+4
  • Answer
  • March 10, 2025

Hi Husam,

It seems that you have not selected Delete Person but instead chose Track Event, as this is the screen to map event properties.

On the mappings screen, you can click add mapping. Then, scroll down and click Delete Person
 

Clicking this and saving it will automatically map the User Deleted event to the Delete Person action. It should look like this on the overview of mappings:

 


Forum|alt.badge.img+1

Great. 
Much appreciated Wouter. Its working finally 🙏