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

# Remove Method of the Paragraph Object

This method deletes a range from the text of the paragraph.

## Syntax

### C++

```cpp theme={null}
HRESULT Remove(
  int FromPos,
  int ToPos
);
```

### C\#

```csharp theme={null}
void Remove(
  int FromPos,
  int ToPos
);
```

### Visual Basic .NET

```vb theme={null}
Sub Remove( _
  FromPos As Integer, _
  ToPos As Integer _
)
```

## Parameters

FromPos

\[in] Position where the range is started. Must be not less than 0 and not greater than the length of paragraph.

ToPos

\[in] Position where the range is ended. Must be not less than variable fromPos and 0 and not greater than the length of paragraph. By default, this variable is set to -1. If this variable is not set or is set to -1 one character will be removed only.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## See also

[Paragraph](/fine-reader/engine/api-reference/text-related-objects/paragraph)

[CharParams](/fine-reader/engine/api-reference/text-related-objects/charparams)
