# Libtmux.Operations.break_pane

- **Module:** Libtmux
- **Package:** libtmux
- **Language:** OCaml
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ocaml/blob/205dfda49742592b479247049d186956e4a4cfe9/lib/libtmux.mli#L1257
- **Public owner:** Libtmux
- **Page:** https://libtmux.org/en/ocaml/latest/reference/libtmux-operations-break_pane/

```
val break_pane :
  ?name:string ->
  Pane.target -> session:Session.target -> index:int -> Created.t Command.t
```

Move the pane into a new window at an explicit session index. An occupied destination fails. The returned IDs describe the resulting context; the pane itself already existed.

## Parameters

- `name?` (`string`)
- `arg1` (`Pane.target`)
- `session` (`Session.target`)
- `index` (`int`)
