# LibTmux.unset_hook

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Julia
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-julia/blob/f3da513be1225d36d5854cd8db5972c01857578e/src/configuration.jl#L481
- **Page:** https://libtmux.org/en/julia/latest/reference/libtmux-unset_hook/

```
unset_hook(
    connection::LibTmux.ControlConnection,
    scope,
    name::AbstractString;
    index,
    kwargs...
)

unset_hook(server::LibTmux.Server, scope, name::AbstractString; index, kwargs...)
```

## Methods

### `unset_hook` (overload 1)

```julia
unset_hook(
    connection::LibTmux.ControlConnection,
    scope,
    name::AbstractString;
    index,
    kwargs...
)
```

[Source](https://github.com/libtmux/libtmux-julia/blob/f3da513be1225d36d5854cd8db5972c01857578e/src/control_options.jl#L384).

Unset an exact hook override or sparse entry through the pinned connection.

### `unset_hook(server::LibTmux.Server, scope, name::AbstractString; index, kwargs...)`

[Source](https://github.com/libtmux/libtmux-julia/blob/f3da513be1225d36d5854cd8db5972c01857578e/src/configuration.jl#L482).

Unset a hook override or sparse entry at the explicit scope; return `CommandResult`.

## Parameters

- `connection` (`LibTmux.ControlConnection`) (for `unset_hook(connection, scope, name, index, kwargs)`)
- `scope` (`Any`)
- `name` (`AbstractString`)
- `index`
  Default: `nothing`.
- `kwargs`
- `server` (`LibTmux.Server`) (for `unset_hook(server, scope, name, index, kwargs)`)
