# server.Server.clear_prompt_history

- **Module:** server.Server
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/server.rs#L1071
- **Page:** https://libtmux.org/reference/rs/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.
