# ControlSession.stopWatching(_:)

- **Module:** ControlSession
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/Watch.swift#L149
- **Page:** https://libtmux.org/reference/swift/controlsession-stopwatching(_-)/

```
ControlSession.stopWatching(_:)(name: String) -> ()
```

Removes the subscription registered under `name`.

tmux reads a `-B` argument with no scope and no format as a removal, so
this is the same command with the rest left off.

## Raises

- `TmuxError`
