---
name: "ctrlRemoveAllEventHandlers"
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/ctrlRemoveAllEventHandlers
revid: 363228
updated: 2024-03-26T10:51:07Z
---

# ctrlRemoveAllEventHandlers

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

## Description

Remove all event handlers from the given control.

## Syntax

```sqf
control ctrlRemoveAllEventHandlers handlerName
```

**Parameters:**

- `control`: [Control](../topics/Control.md)
- `handlerName`: [String](../topics/String.md)

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

## Examples

### Example 1

```sqf
_ctrlButton ctrlRemoveAllEventHandlers "ButtonDown";
```

## See also

[ctrlAddEventHandler](../commands/ctrlAddEventHandler.md)

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