# LibTmux::Model::SessionRef.detach-clients

- **Module:** LibTmux::Model
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/0b5dd3d32e20f83a0069874e33eab0eb48f55962/lib/LibTmux/Model.rakumod#L167
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-model-sessionref-detach-clients/

```
method detach-clients(--> Result:D)
```

Request detachment of clients in this session; acknowledgement is not client exit.

Request detachment of clients in this session; acknowledgement is not client exit.

## tmux command

The tmux commands behind `detach-clients`.

- [`detach-client`](/en/tmux/latest/manual/detach-client/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_detach_client_entry`](/en/tmux/latest/reference/c-variable-cmd_detach_client_entry/) (attribute)
- [`cmd_detach_client_exec`](/en/tmux/latest/reference/c-function-cmd-detach-client-c-cmd_detach_client_exec/) (function)

## In other ports

Detach every client attached to a session

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Session.detach_client`](/en/py/latest/reference/libtmux-session-detach_client/) (method) |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | [`session.Session.detach`](/en/ts/latest/reference/session-session-detach/) (method) |
| Rust | [`session.Session.detach_clients`](/en/rs/latest/reference/session-session-detach_clients/) (method) |
| Go | [`tmux.Session.DetachClients`](/en/go/latest/reference/tmux-session-detachclients/) (method) |
| Java | [`io.github.libtmux.Session.detachClients`](/en/java/latest/reference/io-github-libtmux-session-session-detachclients/) (method) |
| C# | [`LibTmux.Session.DetachClientAsync`](/en/csharp/latest/reference/libtmux-session-detachclientasync/) (method) |
| C++ | [`libtmux::Session::detach_clients`](/en/cxx/latest/reference/libtmux-session-detach_clients/) (method) |
| Swift | [`Server.detachClients(from:)`](/en/swift/latest/reference/server-detachclients(from-)/) (method) |
| OCaml | No direct public OCaml equivalent is recorded for this operation. |
| Perl | No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands. |

No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.
