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

# CloseBatch

> Close a batch and unlock it for deletion using the CloseBatch method of the ABBYY FlexiCapture Web Services API, identifying the batch by its ID.

## What it does

Closes a batch and unlocks it for deletion.

## Definition

```
void CloseBatch( 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 unlocked for deletion    |

## Returned value

None.
