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

Deletes a batch.

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

## Definition

```csharp theme={null}
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 completed successfully. |
