> ## 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 contact association

> Remove one association label from a HubSpot contact.

Use `hubspot.removeContactAssociation` to remove one association label from a contact.

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

export default automation("Remove contact association", () => {
  onDashboardRun({ title: "Remove contact association" })
  hubspot.removeContactAssociation({
    associationCategory: "HUBSPOT_DEFINED",
    fromRecordId: "123",
    toObjectType: "companies",
    toRecordId: "456",
    associationTypeId: 1,
  })
})
```

## Inputs

Provide the contact 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.
