RelationDelete event fires whenever an existing record-level link between two objects is removed. The payload identifies both sides of the now-deleted relationship along with the governing association definition. Use this event to remove corresponding edges from external graph databases, update denormalized data, or trigger cleanup workflows when records are unlinked.
Payload
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier of the deleted relation instance |
firstObjectKey | string | Object type key for the first record that was part of the relationship |
secondObjectKey | string | Object type key for the second record that was part of the relationship |
firstRecordId | string | ID of the specific record on the first side of the link |
secondRecordId | string | ID of the specific record on the second side of the link |
associationId | string | ID of the association definition that governed this relation |
locationId | string | Sub-account ID where this relation existed |
Example payload
Related
- Relation Create — fires when a record-level link is established
- Associations API — manage association definitions and relations
.png?fit=max&auto=format&n=EQK5eX9kTD8NzWwA&q=85&s=878008bf159fcc4964d0c0d508b6e400)