# pane.Pane.unsetHook

- **Module:** pane
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/073b9d7dedad900bff6f5ec0ea47794e40225870/packages/libtmux/src/pane.ts#L172
- **Page:** https://libtmux.org/en/ts/latest/reference/pane-pane-unsethook/

```
unsetHook(name: string): Promise<void>
```

Remove every command bound to a pane-scoped hook.

## Examples

```ts
await pane.unsetHook("pane-title-changed");
```

## Parameters

- `name` (`string`)

## tmux command

The tmux commands behind `unsetHook`.

- [`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)

## Guides

Pages that discuss `unsetHook`.

- [Options and hooks](/en/ts/latest/topics/options-and-hooks/)

## In other ports

Unbind a pane hook

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Pane.unset_hook`](/en/py/latest/reference/libtmux-pane-unset_hook/) (method) |
| Lua | [`libtmux.Pane:unset_hook`](/en/lua/latest/reference/libtmux-pane-unset_hook/) (method) |
| Rust | [`pane.Pane.unset_hook`](/en/rs/latest/reference/pane-pane-unset_hook/) (method) |
| Go | [`tmux.Pane.UnsetHook`](/en/go/latest/reference/tmux-pane-unsethook/) (method) |
| Java | reached through `Pane.hooks`, whose `Hooks` carries the write |
| C# | reached through `Pane.Hooks`, whose `TmuxHooks` carries the write |
| C++ | no equivalent on `Pane` |
| 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#.
