# control.ControlSender.unsubscribe

- **Module:** control.ControlSender
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/control.rs#L876
- **Page:** https://libtmux.org/reference/rs/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.
