HubSpot Associations icon

HubSpot Associations

Manage HubSpot object associations

Dissociate Objects

AI-generated

Summary

Removes association between two HubSpot objects. Optionally specify one or more association labels to delete only those associations; if no labels are selected, all associations between the objects are removed.

Inputs

  • fromObjectId (required) — ID of the source object.
  • toObjectId (required) — ID of the target object.
  • associationLabel — Optional: One or more association labels to delete. Leave empty to delete all associations between the objects.
  • fromObjectType (required) — Source object type (or custom type when 'Custom' is selected).
  • toObjectType (required) — Target object type (or custom type when 'Custom' is selected).

Output shape

{ success: boolean, from: {type: string, id: string}, to: {type: string, id: string}, deletedLabels: (object[] | 'all') }

When associationLabel is provided, deletedLabels contains the label objects; otherwise it is the string 'all' indicating all associations were removed.

Links

Discussion