# LibTmux.TmuxKeys.UnbindAsync

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Keys/TmuxKeys.cs#L41
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-tmuxkeys-unbindasync/

tmux command: [`unbind-key`](/en/tmux/latest/manual/unbind-key/)

```
LibTmux.TmuxKeys.UnbindAsync(request: UnbindKeyRequest, cancellationToken: CancellationToken) -> Task
```

Removes a binding, or every binding in a table.

Removing a binding nobody made is not an error: tmux treats the
absence as the state that was asked for.

## Parameters

- `request` (`UnbindKeyRequest`): Which key, or every key in a table.
- `cancellationToken` (`CancellationToken`): Cancels the tmux command.

## Returns

A task that completes once the binding is gone.

## Raises

- [`ArgumentNullException`](https://learn.microsoft.com/dotnet/api/system.argumentnullexception): <paramref name="request" /> is null.
- [`ArgumentException`](https://learn.microsoft.com/dotnet/api/system.argumentexception): The request names no key and does not ask for all.
