# Server.detachClients(from:)

- **Module:** Server
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/Navigation.swift#L234
- **Page:** https://libtmux.org/reference/swift/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`
