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

# DeleteAt Method of the PopupMenu Object

> DeleteAt method of the PopupMenu Object in ABBYY FineReader Engine Visual Components on Windows — This method removes the element with the specified position from the custom part of the context menu.

This method removes the element with the specified position from the custom part of the context menu.

## Syntax

### C++

```cpp theme={null}
HRESULT DeleteAt( int Index );
```

### C\#

```csharp theme={null}
void DeleteAt( int Index );
```

### Visual Basic .NET

```vb theme={null}
Sub DeleteAt(Index As Integer)
```

## Parameters

Index

\[in] Specifies the position of the element which must be removed. Must be in a range from 0 to the value of the [IPopupMenu::Count](/fine-reader/engine/visual-components-reference/supplementary-objects/popupmenu#count) property 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

[PopupMenu](/fine-reader/engine/visual-components-reference/supplementary-objects/popupmenu)

[Delete](/fine-reader/engine/visual-components-reference/supplementary-objects/popupmenu/delete-method)
