tmuxtmuxCLI manual

Choose documentation 1

3.2a

tmux manual version

Latest (3.7c) 3.7c 3.2a
English

tmux delete-buffer

command tmux 3.2a

Delete the buffer named buffer-name, or the most recently added automatically named buffer if not specified.

Syntax

tmux delete-buffer [-b buffer-name]

Alias: deleteb.

Behavior

Delete the buffer named buffer-name, or the most recently added automatically named buffer if not specified.

C implementation

Internal declarations in tmux 3.2a:

Use from a library

These methods send delete-buffer. Each describes its own defaults, errors and execution model.

Library methods that send tmux delete-buffer, by scope
Language Methods
Python Server.delete_buffer
Ruby Async::Server#delete_buffer LibTmux::Server#delete_buffer
Lua Server:delete_buffer except before tmux 3.4
Julia delete_buffer
Erlang delete/2
Haskell readProgramScreen resumeProgramCleanup when a captured buffer remains owned runProgram withProgram when a captured buffer remains owned
Common Lisp client.delete-buffer
TypeScript Server.deleteBuffer
Rust Server.delete_buffer
Go Pane.CaptureToFile Server.DeleteBuffer
Java Buffers.delete except before tmux 3.4
Clojure delete-buffer!
Kotlin Buffers.delete except before tmux 3.4
Scala Buffers.delete except before tmux 3.4
C# TmuxBuffers.DeleteAsync
C++ Buffer::remove
Swift Server.deleteBuffer(named:)
Perl Async::Server::delete_buffer LibTmux::Server::delete_buffer
Raku Buffers.delete

No method in PowerShell, Elixir, F#, or OCaml sends this command itself.

tmux sources and license

Syntax comes from tmux 3.2a list-commands. See the global options for sockets and configuration, and command syntax and targets.

Behavior is taken from the tmux 3.2a manual.

Command declaration

Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>

Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Esc

Type to search.

Reference previewOpen reference