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

# DeletePage

> DeletePage method in the ABBYY FlexiCapture web services API removes a single page from a document by its page ID and returns a flag indicating success.

## What it does

Deletes a page from a document.

## Definition

```
bool DeletePage( int sessionId, int batchId, int documentId, int pageId );
```

## Parameters

| **Name**   | **Type** | **Description**                                           |
| ---------- | -------- | --------------------------------------------------------- |
| sessionId  | int      | The ID of the connection to the Application Server        |
| batchId    | int      | The ID of the batch that contains the document            |
| documentId | int      | The ID of the document from which a page is to be deleted |
| pageId     | int      | The ID of the page to be deleted                          |

## Returned value

| **Type** | **Description**                                                |
| -------- | -------------------------------------------------------------- |
| bool     | A flag which shows whether the operation was successful or not |
