Skip to main content

Hi - looking for guidance on how to implement onDelete in Action Destinations.

 

I believe this is just triggered whenever a Segment user uses the deletion and suppression endpoints? What can I assume the payload looks like?

 

Ideally the user can submit both userIds and companyIds and we can handle those conditionally.

Hey Jas,

I’d recommend checking out our documentation on deletions as well as our API docs for a better idea of what the payloads will look like.

When processing a deletion request, Segment will remove data at the source level - almost as if the user never existed in Segment. Segment will then forward the deletion request to supported destinations.

Are you planning to implement onDelete through a custom function in Segment? Deletion requests are on the user level, but you could theoretically write some custom code to identify all users attached to a companyId and process them each on the user level.

I’d be interested to hear what you’re looking to accomplish so I can do a bit more research.

-Tyler


Reply