# LibTmux.TmuxChaining.ToUnsetCommand

- **Module:** LibTmux.TmuxChaining
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux/Chaining/TmuxChaining.Hooks.cs#L36
- **Page:** https://libtmux.org/en/dotnet/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`: An argument is null.
