> ## 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 MrzField Object

This method deletes a text fragment.

## 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] The start of the text fragment. Must be greater than or equal to 0.

ToPos

\[in] The end of the text fragment. Must be not less than the FromPos parameter and not greater than the length of text minus 1.

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

[MrzField](/fine-reader/engine/api-reference/document-related-objects/mrzfield)
