# UserDictionary.RemoveAllWords Method

> Removes all words from the user dictionary. The method has no effect, if the UserDictionary.IsEditable property is false or the user dictionary is not added to the TXSpell.Dictionaries or TXSpellChecker.Dictionaries DictionaryCollection.

- **Product:** TX Spell .NET for Windows Forms
- **Section:** Reference
- **Kind:** Method
- **Namespace:** `TXTextControl.Proofing`
- **Package:** `TXTextControl.TXSpell.WinForms.SDK` (assembly `TXSpell.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TXSpell.Core.SDK` (assembly `TXSpell.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXSpell.dll` from the setup
- **Path:** TX Spell .NET for Windows Forms > Reference > TXTextControl.Proofing > UserDictionary.RemoveAllWords Method
- **451 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/userdictionary/removeallwords-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/userdictionary/removeallwords-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/userdictionary/removeallwords-method/llms-full.txt

---

### Description

Removes all words from the [user dictionary](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/userdictionary/llms-full.txt). The method has no effect, if the [UserDictionary.IsEditable](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/userdictionary/iseditable-property/llms-full.txt) property is false or the [user dictionary](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/userdictionary/llms-full.txt) is not added to the [TXSpell.Dictionaries](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspell/dictionaries-property/llms-full.txt) or [TXSpellChecker.Dictionaries](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/dictionaries-property/llms-full.txt) [DictionaryCollection](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dictionarycollection/llms-full.txt).

### Syntax

```csharp
public bool RemoveAllWords();
```

```vbnet
Public Function RemoveAllWords() As Boolean
```

### Return Value

The return value is true, if all words could be removed. Otherwise, it is false.

### Examples

The following example uses Remove All Words in a focused User Dictionary workflow.

```csharp
if (userDictionary.RemoveAllWords())
{
    Console.WriteLine("Remove All Words completed successfully.");
}
```

```vbnet
If userDictionary.RemoveAllWords() Then
    Console.WriteLine("Remove All Words completed successfully.")
End If
```

---

## Nearby

- **Previous:** [UserDictionary.IsEditable Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/userdictionary/iseditable-property/llms-full.txt)
- **Next:** [UserDictionary.RemoveWord Method](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/userdictionary/removeword-method/llms-full.txt)
