# Sandbox.UI.TextEntry.ClearUndoHistory

```csharp
void ClearUndoHistory()
```

Throw the history away - for when the text is replaced by something the user didn't do.

Declared in [Sandbox.UI.TextEntry](/api/Sandbox.UI.TextEntry).
Assembly: `Sandbox.Engine`.
