---
name: "displayRemoveEventHandler"
type: command
status: ok
groups: ["GUI Control - Event Handlers", "Event Handlers"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/displayRemoveEventHandler
revid: 364901
updated: 2024-06-29T14:38:36Z
---

# displayRemoveEventHandler

*Command · GUI Control - Event Handlers, Event Handlers · Arma 3 v0.50 · introduced in Arma 2 v1.00*

## Description

Remove a given event handler from the given display.

## Syntax

```sqf
display displayRemoveEventHandler [handlerType, id]
```

**Parameters:**

- `display`: [Display](../topics/Display.md)
- `handlerType`: [String](../topics/String.md) - type of the event handler
- `id`: [Number](../topics/Number.md) - index of the event handler

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
findDisplay 46 displayRemoveEventHandler ["keyDown",5];
```

## See also

[disableSerialization](../commands/disableSerialization.md) · [Display](../topics/Display.md) · [displayAddEventHandler](../commands/displayAddEventHandler.md) · [displayRemoveAllEventHandlers](../commands/displayRemoveAllEventHandlers.md)

<sub>Source: [BI Community Wiki — displayRemoveEventHandler](https://community.bistudio.com/wiki/displayRemoveEventHandler) (revision 364901).</sub>
