---
name: "BIS_fnc_removeScriptedEventHandler"
type: function
status: ok
groups: ["Event Handlers"]
arma3_since: "1.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_removeScriptedEventHandler
revid: 327930
updated: 2022-07-13T12:30:39Z
---

# BIS_fnc_removeScriptedEventHandler

*Function · Event Handlers · Arma 3 v1.00*

## Description

Removes scripted event handler with given name and id.
Additionally "ScriptedEventHandlerRemoved" scripted EH is called.

> [!NOTE]
> For a list of available scripted event handlers, see [Arma 3: Scripted Event Handlers](../topics/Scripted_Event_Handlers.md).

## Syntax

```sqf
[namespace, name, id] call BIS_fnc_removeScriptedEventHandler
```

**Parameters:**

- `namespace`: [Namespace](../topics/Namespace.md), [Object](../topics/Object.md), [Group](../topics/Group.md), [Location](../topics/Location.md), [Boolean](../topics/Boolean.md), [Control](../topics/Control.md) or [Display](../topics/Display.md) - namespace in which handler is saved
- `name`: [String](../topics/String.md) - handler name
- `id`: [Number](../topics/Number.md) - EH id

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) if removed, [false](../commands/false.md) if didn't exist

## Examples

### Example 1

```sqf
[missionNamespace, "event", 2] call BIS_fnc_removeScriptedEventHandler;
```

## See also

[BIS_fnc_callScriptedEventHandler](../functions/BIS_fnc_callScriptedEventHandler.md) · [BIS_fnc_addScriptedEventHandler](../functions/BIS_fnc_addScriptedEventHandler.md) · [BIS_fnc_removeAllScriptedEventHandlers](../functions/BIS_fnc_removeAllScriptedEventHandlers.md)

<sub>Source: [BI Community Wiki — BIS fnc removeScriptedEventHandler](https://community.bistudio.com/wiki/BIS_fnc_removeScriptedEventHandler) (revision 327930).</sub>
