---
title: "raknet.remove_send_hook"
description: "Removes the first matching send-hook callback by function identity."
---

```lua
raknet.remove_send_hook(callback: function): ()
```

---

## Aliases

None.

---

## Arguments

<ParamField body="callback" type="function" required>
  The callback to register. Keep the same function object for removal.
</ParamField>

---

## Returns

This function returns no values.

Retain the exact callback object. Repeated registrations require repeated removals. Missing callbacks do nothing.

**Related types:** [RakNet types & behavior](/reference/raknet/types).

---

## Example

```lua
local function observe(packet) print(packet.Size) end
raknet.add_send_hook(observe)
raknet.remove_send_hook(observe)
```
