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

# RakNet.remove_send_hook

> Removes a send hook previously registered with the same callback closure. The function returns no values whether or not a matching hook was present.

<div className="real-function-page">
  ```lua theme={null}
  RakNet.remove_send_hook(callback: function)
  ```

  ## Alias

  * `raknet.remove_send_hook`

  ## Argumen

  <ParamField path={"callback"} type={"function"} required>
    The callback closure to remove from outgoing packet hooks.
  </ParamField>

  ## Contoh

  Remove a send hook by passing the same callback closure that was registered.

  ```lua theme={null}
  local function onSend(packet)
      print(packet.Size)
  end

  if raknet.is_enabled then
      raknet.add_send_hook(onSend)
      raknet.remove_send_hook(onSend)
  end
  ```
</div>
