> ## Documentation Index
> Fetch the complete documentation index at: https://docsuncv2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# oth.unhook

Restores a hooked function back to its original state, removing any Oth hooks.

```luau theme={null}
oth.unhook(target: function): ()
```

## Parameters

| Parameter | Type       | Description                     |
| --------- | ---------- | ------------------------------- |
| `target`  | `function` | The hooked function to restore. |

## Returns

`void`

## Example

<CodeGroup>
  ```luau Example 1 theme={null}
  oth.unhook(print)
  print("Print restored!")
  ```

  ```luau Example 2 theme={null}
  oth.unhook(workspace.Destroy)
  ```
</CodeGroup>

<Tip>
  Cleans up all resources associated with the hook.
</Tip>
