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

# Batch deleted

> Handle the Batch deleted event in ABBYY FlexiCapture scripts: the handler runs before a batch is deleted so you can clear related data.

## What it does

The handler of this event is used if you need to clear some data relating to the batch.

## When it is launched

The script is launched prior to deleting the batch.

<Note>
  Deleting a batch does not initiate the event of deleting batch documents and pages.
</Note>

## Parameters

| **Name** | **Type**                                         | **Access**                                                                                                                           | **Description**         |
| -------- | ------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ----------------------- |
| Batch    | [IBatch](/flexi-capture/appendix/scripts/ibatch) | Read-only. Internal[\*](/flexi-capture/appendix/scripts/batch-removal#asterisk) fields of batch documents and pages are unavailable. | The batch being deleted |

<a id="asterisk" />\* - The internal field requires loading the object into memory.
