# LibTmux::Hooks#unset

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/c8b839595d5a30e271e3f9be0d0fe811ddb11b7e/gems/libtmux/lib/libtmux/options.rb#L106
- **Public owner:** LibTmux::Options#unset
- **Page:** https://libtmux.org/en/ruby/v0.1.0/reference/libtmux-hooks-unset/

tmux command: [`set-hook`](/en/tmux/latest/manual/set-hook/)

tmux catalog: [Hooks](/en/tmux/latest/catalog/hooks/)

```
def unset: (
  ::String,
  ?index: ::Integer?,
  ?timeout: ::Numeric,
  ?cancel: untyped
) -> ::LibTmux::CommandResult
```

Behavior: Options and hooks.

Behavior contract: Options and hooks.

## Parameters

- `arg1` (`::String`)
- `index` (`::Integer?`)
- `timeout` (`::Numeric`)
- `cancel` (`untyped`)
