> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mercurjs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# deleteOffersWorkflow

> Delete one or more offers.

Deletes the given offers and emits `offer.deleted` with each offer's `id` and `product_id`. Triggered by `DELETE /vendor/offers/:id`, `DELETE /admin/offers/:id`, and the offer batch routes.

## Usage

```ts theme={null}
import { deleteOffersWorkflow } from "@mercurjs/core/workflows"

await deleteOffersWorkflow(container).run({
  input: { ids: ["offer_123"] },
})
```

## Input

<ParamField body="ids" type="string[]" required>IDs of the offers to delete.</ParamField>
<ParamField body="additional_data" type="object">Custom data passed through to the workflow hooks.</ParamField>

## Result

<ResponseField name="result" type="void">No return value; the offers are deleted.</ResponseField>

## Hooks

* `offersDeleted` — runs after deletion with `{ ids, additional_data }`.

```ts theme={null}
deleteOffersWorkflow.hooks.offersDeleted(async ({ ids, additional_data }) => {
  // react to deleted offers
})
```
