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

# DeleteWord Method of the Dictionary Object

This method deletes a word from the dictionary.

## Syntax

```vb Visual Basic .NET theme={null}
Sub DeleteWord(word As String)
```

```cpp C++ theme={null}
HRESULT DeleteWord(
  BSTR word
);
```

## Parameters

**word**

\[in] This parameter contains the word that is to be deleted. If the deleted word is not present in the dictionary, no error occurs.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FlexiCapture SDK functions](https://docs.abbyy.com/flexi-capture/sdk/api-reference/errorcodes.md).

## Remarks

To delete a group of words or all words from the dictionary, use the [**IDictionary::DeleteWords**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/dictionary-deletewords.md) or [**IDictionary::DeleteAllWords**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/dictionary-deleteallwords.md) method, respectively.

## See also

[**Dictionary**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/dictionary.md)

[**IDictionary::DeleteWords**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/dictionary-deletewords.md)

[**IDictionary::DeleteAllWords**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/dictionary-deleteallwords.md)
