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

> Deletes a bookings custom attribute.

`square.deleteBookingCustomAttribute` deletes a bookings custom attribute.

## Example

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

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

  square.deleteBookingCustomAttribute({
    bookingId: "booking_id",
    key: "key",
  })
})
```

## Inputs

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

| Field       | Type     | Required | Default | Description                                                                                                                                                                                                                        |
| ----------- | -------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `bookingId` | `string` | Yes      | —       | The ID of the target booking.                                                                                                                                                                                                      |
| `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 [DeleteBookingCustomAttribute reference](https://developer.squareup.com/reference/square/booking-custom-attributes-api/delete-booking-custom-attribute) for provider field semantics and limits.

## Output

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