> ## 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 オブジェクトの DeleteWords メソッド

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

## 構文

```vb Visual Basic .NET theme={null}
Sub DeleteWords(words As StringsCollection)
```

```cpp C++ theme={null}
HRESULT DeleteWords(
  IStringCollection* words
);
```

## パラメーター

**words**

\[in] [**StringsCollection**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/stringscollection.md) 型のこのパラメーターには、削除する単語のコレクションを指定します。削除対象の単語の中に辞書に存在しないものが含まれていても、エラーは発生しません。

## 戻り値

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

## 解説

辞書から単語を 1 つ削除するには [**IDictionary::DeleteWord**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/dictionary-deleteword.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::DeleteWord**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/dictionary-deleteword.md)

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