> ## Documentation Index
> Fetch the complete documentation index at: https://help.hoopai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Relation Delete | Webhook Events

> Fires when an existing relation (record-level link) between two object records is removed.

The `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` | Account ID where this relation existed                                  |

## Example payload

```json theme={null}
{
  "id": "67ae0d741119d218c9d0c477",
  "firstObjectKey": "custom_objects.mad",
  "firstRecordId": "67a349a79b28947ec1f65bb5",
  "secondObjectKey": "contact",
  "secondRecordId": "emqfhnG3g9D9chy9inTz",
  "associationId": "669e5795add2094075906c65",
  "locationId": "eHy2cOSZxMQzQ6Yyvl8P"
}
```

## Related

* [Relation Create](/api-reference/webhooks/relation-create) — fires when a record-level link is established
* [Associations API](/api-reference/associations/overview) — manage association definitions and relations
