# server.Server.clear_prompt_history

- **Module:** server.Server
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/server.rs#L1324
- **Page:** https://libtmux.org/en/rs/latest/reference/server-server-clear_prompt_history/

```
server.Server.clear_prompt_history(self) -> Result<(), Error>
```

Forget the entries tmux remembers for prompts.

Clears every kind, which is what tmux's own command does.

# Errors

Returns [`Error::UnsupportedCapability`] below tmux 3.3, and an error
when tmux cannot be reached or refuses the command.
