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

# Batch Delete Catalog Objects

> Deletes a set of [CatalogItem](entity:CatalogItem)s based on the provided list of target IDs and returns a set of successfully deleted IDs in the response.

`square.batchDeleteCatalogObjects` deletes a set of [CatalogItem](entity:CatalogItem)s based on the provided list of target IDs and returns a set of successfully deleted IDs in the response.

## Example

```ts automations/square-batch-delete-catalog-objects.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { square } from "automate.ax/square"

export default automation("Batch Square Delete Catalog Objects", () => {
  onDashboardRun({ title: "Batch Square Delete Catalog Objects" })

  square.batchDeleteCatalogObjects({
    objectIds: ["W62UWFY35CWMYGVWK6TWJDNI", "AA27W3M2GGTF3H6AVPNB77CK"],
  })
})
```

## Inputs

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

| Field       | Type       | Required | Default | Description                                                                                                                                                                                                                      |
| ----------- | ---------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `objectIds` | `string[]` | Yes      | —       | The IDs of the CatalogObjects to be deleted. When an object is deleted, other objects in the graph that depend on that object will be deleted as well (for example, deleting a CatalogItem will delete its CatalogItemVariation. |

Use the official [BatchDeleteCatalogObjects reference](https://developer.squareup.com/reference/square/catalog-api/batch-delete-catalog-objects) for provider field semantics and limits.

## Output

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