---
name: "removeAllEventHandlers"
type: command
status: ok
groups: ["Event Handlers"]
arma3_since: "0.50"
locality: {"argument": null, "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/removeAllEventHandlers
revid: 349140
updated: 2023-11-08T14:49:47Z
---

# removeAllEventHandlers

*Command · Event Handlers · Arma 3 v0.50 · introduced in Operation Flashpoint v1.85*

Locality: effect **local**

## Description

Removes all event handlers of given type that were added by [addEventHandler](../commands/addEventHandler.md) **and** resets event handler's creation index to 0.

## Syntax

```sqf
target removeAllEventHandlers handlerType
```

**Parameters:**

- `target`: [Object](../topics/Object.md) or Arma 3 v2.10 [Group](../topics/Group.md)
- `handlerType`: [String](../topics/String.md) - see Event Handlers

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

## Examples

### Example 1

```sqf
player removeAllEventHandlers "Killed";
```

## See also

[removeEventHandler](../commands/removeEventHandler.md) · [addEventHandler](../commands/addEventHandler.md) · [removeMissionEventHandler](../commands/removeMissionEventHandler.md)

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