# libtmux_mcp.tools.buffer_tools.delete_buffer

- **Module:** libtmux_mcp.tools.buffer_tools
- **Package:** libtmux-mcp
- **Language:** Python
- **Kind:** function
- **Source:** https://github.com/tmux-python/libtmux-mcp/blob/4daddc0dfca96c43bf521d818bf91564e1434760/src/libtmux_mcp/tools/buffer_tools.py#L347
- **Page:** https://libtmux.org/en/py/latest/mcp/reference/libtmux_mcp-tools-buffer_tools-delete_buffer/

```
libtmux_mcp.tools.buffer_tools.delete_buffer(buffer_name: str, socket_name: str | None = None) -> str
```

Delete an MCP-owned buffer.

## Parameters

- `buffer_name` (str): Must match the full MCP-namespaced form.
- `socket_name` (str | None): tmux socket name.

## Returns

str
    Confirmation message.
