# Server.detachClients(from:)

- **Module:** Server
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/Sources/LibTmux/Navigation.swift#L252
- **Page:** https://libtmux.org/en/swift/latest/reference/server-detachclients(from-)/

```
Server.detachClients(from:)(from: Session) -> ()
```

Detaches every client attached to a session.

The session target and detach run in one guarded tmux queue item, so a
client name cannot be reused between a listing and this operation.
Detaching nothing is success.

## Raises

- `TmuxError`
