# control.ControlSender.unsubscribe

- **Module:** control.ControlSender
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/control.rs#L1016
- **Page:** https://libtmux.org/en/rs/latest/reference/control-controlsender-unsubscribe/

```
control.ControlSender.unsubscribe(self, name: &str) -> Result<(), Error>
```

Stop reporting a format this connection subscribed to.

tmux removes a subscription when it is named with no colon after it,
which is why this cannot be spelled as [`Self::subscribe`] with an empty
format: that would replace the subscription rather than remove it.

# Errors

Returns an error when the connection has closed, tmux refuses the
request, or the name is empty or contains a colon.
