> ## 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 Customer Custom Attribute

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

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

## Example

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

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

  square.deleteCustomerCustomAttribute({
    customerId: "customer_id",
    key: "key",
  })
})
```

## Inputs

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

| Field        | Type     | Required | Default | Description                                                                                                                                                                                                                        |
| ------------ | -------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `customerId` | `string` | Yes      | —       | The ID of the target customer profile.                                                                                                                                                                                             |
| `key`        | `string` | Yes      | —       | The key of the custom attribute to delete. This key must match the `key` of a custom attribute definition in the Square seller account. If the requesting application is not the definition owner, you must use the qualified key. |

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

## Output

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