# libtmux.Server:unset_hook

- **Module:** libtmux
- **Package:** libtmux
- **Language:** Lua
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-lua/blob/d68f829fe097e38dcbbf7147e276666fe615f0cf/lua/libtmux/_internal/server.lua#L753
- **Page:** https://libtmux.org/en/lua/v0.1.1/reference/libtmux-server-unset_hook/

```
unset_hook: fun(
  self: libtmux.Server,
  name: string,
  options?: libtmux.SettingUnsetOptions,
):libtmux.Request<boolean>
```

## Parameters

- `name` (`string`)
- `options` (`libtmux.SettingUnsetOptions?`)

## tmux command

The tmux commands behind `unset_hook`.

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

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_set_hook_entry`](/en/tmux/latest/reference/c-variable-cmd_set_hook_entry/) (attribute)
- [`cmd_set_option_exec`](/en/tmux/latest/reference/c-function-cmd-set-option-c-cmd_set_option_exec/) (function)

## tmux hooks

Events that run tmux commands, with the scope each hook belongs to and where tmux fires it.

- [Hooks](/en/tmux/latest/catalog/hooks/) (hook)

## In other ports

Unbind a global hook

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Server.unset_hook`](/en/py/latest/reference/libtmux-server-unset_hook/) (method) |
| TypeScript | [`server.Server.unsetHook`](/en/ts/latest/reference/server-server-unsethook/) (method) |
| Rust | [`server.Server.unset_hook`](/en/rs/latest/reference/server-server-unset_hook/) (method) |
| Go | no equivalent on `Server` |
| Java | reached through `Server.hooks`, whose `Hooks` carries the write |
| C# | reached through `Server.Hooks`, whose `TmuxHooks` carries the write |
| C++ | no equivalent on `Server` |
| Swift | [`Server.unsetHook(_:in:)`](/en/swift/latest/reference/server-unsethook(_-in-)/) (method) |

No equivalent is recorded in Ruby, PowerShell, Julia, Elixir, Kotlin, Scala or F#.
