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

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Remove deal association

> Remove one association label from a HubSpot deal.

Use `hubspot.removeDealAssociation` to remove one association label from a deal.

```ts automations/hubspot-remove-deal-association.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { hubspot } from "automate.ax/hubspot"

export default automation("Remove deal association", () => {
  onDashboardRun({ title: "Remove deal association" })
  hubspot.removeDealAssociation({
    associationCategory: "HUBSPOT_DEFINED",
    fromRecordId: "789",
    toObjectType: "contacts",
    toRecordId: "123",
    associationTypeId: 3,
  })
})
```

## Inputs

Provide the deal ID, destination object type and record ID, association category, and exact association type ID to remove. Optional second argument `{ account }` selects a named HubSpot binding.

## Output

Returns when HubSpot accepts the removal.
