# LibTmux.TmuxChaining.ToUnsetCommand

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Chaining/TmuxChaining.Hooks.cs#L36
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-tmuxchaining-tounsetcommand/

```
LibTmux.TmuxChaining.ToUnsetCommand(request: HookRequest, hooks: TmuxHooks) -> TmuxCommand
```

Returns removing a hook as one tmux command.

## Parameters

- `request` (`HookRequest`): Which hook to remove.
- `hooks` (`TmuxHooks`): The hooks handle whose scope holds it.

## Returns

The command, ready to add to a <see cref="TmuxChain" />.

## Raises

- [`ArgumentNullException`](https://learn.microsoft.com/dotnet/api/system.argumentnullexception): An argument is null.
