# LibTmux.Server.ClearPromptHistoryAsync

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Server.Interaction.cs#L90
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-server-clearprompthistoryasync/

tmux command: [`clear-prompt-history`](/en/tmux/latest/manual/clear-prompt-history/)

```
LibTmux.Server.ClearPromptHistoryAsync(type: PromptType?, cancellationToken: CancellationToken) -> Task
```

Forgets what has been typed at command prompts.

## Parameters

- `type` (`PromptType?`): Which history to clear, or null for all of them.
- `cancellationToken` (`CancellationToken`): Cancels the tmux command.

## Raises

- [`TmuxVersionTooLowException`](/en/csharp/latest/reference/libtmux-tmuxversiontoolowexception/): tmux is older than 3.3.
