# LibTmux::Client::ClientTarget.clear-prompt-history

- **Module:** LibTmux::Client
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/0b5dd3d32e20f83a0069874e33eab0eb48f55962/lib/LibTmux/Client.rakumod#L366
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-client-clienttarget-clear-prompt-history/

```
method clear-prompt-history(Str :$type = Str, *%operation --> Result:D)
```

Clear the daemon's selected prompt history; it is shared across clients.

Clear the daemon's selected prompt history; it is shared across clients.

## Parameters

- `$type?` (`Str`)
- `%operation`

## tmux command

The tmux commands behind `clear-prompt-history`.

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

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_clear_prompt_history_entry`](/en/tmux/latest/reference/c-variable-cmd_clear_prompt_history_entry/) (attribute)
- [`cmd_show_prompt_history_exec`](/en/tmux/latest/reference/c-function-cmd-show-prompt-history-c-cmd_show_prompt_history_exec/) (function)
