> ## 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.

# Delete Order Custom Attribute

> Deletes a [custom attribute](entity:CustomAttribute) associated with a customer profile.

`square.deleteOrderCustomAttribute` deletes a [custom attribute](entity:CustomAttribute) associated with a customer profile.

## Example

```ts automations/square-delete-order-custom-attribute.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { square } from "automate.ax/square"

export default automation("Delete Square Order Custom Attribute", () => {
  onDashboardRun({ title: "Delete Square Order Custom Attribute" })

  square.deleteOrderCustomAttribute({
    orderId: "order_id",
    customAttributeKey: "custom_attribute_key",
  })
})
```

## Inputs

Every input accepts a compatible signal. It requires `ORDERS_WRITE`.

| Field                | Type     | Required | Default | Description                                                                                                        |
| -------------------- | -------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------ |
| `orderId`            | `string` | Yes      | —       | The ID of the target order.                                                                                        |
| `customAttributeKey` | `string` | Yes      | —       | The key of the custom attribute to delete. This key must match the key of an existing custom attribute definition. |

Use the official [DeleteOrderCustomAttribute reference](https://developer.squareup.com/reference/square/order-custom-attributes-api/delete-order-custom-attribute) for provider field semantics and limits.

## Output

Returns the official `Square.DeleteOrderCustomAttributeResponse` response as a codec-safe object. Square integer money amounts remain `bigint` values.
