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

# DeleteBatch

> Delete a batch and its exported documents with the DeleteBatch method of the ABBYY FlexiCapture Web Services API, which returns a success flag.

## What it does

Deletes a batch.

<Warning>
  Deleting a batch deleted the exported documents contained in that batch.
</Warning>

## Definition

```
bool DeleteBatch( int sessionId, int batchId );
```

## Parameters

| **Name**  | **Type** | **Description**                                    |
| --------- | -------- | -------------------------------------------------- |
| sessionId | int      | The ID of the connection to the Application Server |
| batchId   | int      | The ID of the batch to be deleted                  |

## Returned value

| **Type** | **Description**                                                         |
| -------- | ----------------------------------------------------------------------- |
| bool     | A flag that shows whether the operation has been successfully completed |
