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

# Dictionary オブジェクトの DeleteWord メソッド

このメソッドは、辞書から単語を削除します。

## 構文

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

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

## パラメーター

**word**

\[in] このパラメーターには、削除する単語を指定します。指定した単語が辞書に存在しない場合でも、エラーは発生しません。

## 戻り値

このメソッドに固有の戻り値はありません。[ABBYY FlexiCapture SDK 関数の標準の戻り値](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/errorcodes.md)を返します。

## 解説

辞書から複数の単語をまとめて削除する場合は [**IDictionary::DeleteWords**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/dictionary-deletewords.md) メソッドを、すべての単語を削除する場合は [**IDictionary::DeleteAllWords**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/dictionary-deleteallwords.md) メソッドを使用します。

## 関連項目

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

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

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