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