tmux_buffer:delete/2
Delete a named buffer or latest. Missing buffers return buffer_not_found. This performs I/O and affects the server-wide buffer store.
Source and package
- Qualified name
-
tmux_buffer: delete/2 - Declared in
tmux_buffer- Package
- libtmux_erlang
- Source
- apps/libtmux_erlang/src/tmux_buffer.erl
- Other languages
- Perlmethod PowerShell Julia Elixir Haskell Common Lisp PythonRubyLuaTypeScriptRustGo Java C# C++ Swift Kotlin Scala OCaml F# Clojure
- delete(Server, Buffer) -spec delete(tmux
_server: (), target()) -> {ok, tmuxt _operation: ()} | {error, map()}.completed -
Description#
On 3.3/3.3a, named deletion first checks existence with a zero-output
show/3read because native deletion falls back to the newest buffer when a name is absent. This check does not collect a payload or depend on the list bounds. It is not atomic: concurrent removal after the check can trigger that fallback. Use external serialization or tmux 3.4+ when that race is unacceptable.
tmux command#
The tmux commands behind delete/2.
tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
Delete a paste buffer
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Ruby | Lib |
| Lua | libtmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | server |
| Rust | server |
| Go | tmux |
| Java | no equivalent on Server |
| C# | Lib |
| C++ | no equivalent on Server |
| Swift | Server |
| OCaml | No direct public OCaml equivalent is recorded for this operation. |
| Perl | Lib Explicit Server operation. Captured entities remain local observations; use a new snapshot to observe changes. |
No equivalent is recorded in PowerShell, Julia, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.