---
name: "removeAllUserActionEventHandlers"
type: command
status: ok
groups: ["Event Handlers"]
arma3_since: "2.06"
locality: {"argument": null, "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/removeAllUserActionEventHandlers
revid: 322842
updated: 2022-06-27T07:33:49Z
---

# removeAllUserActionEventHandlers

*Command · Event Handlers · Arma 3 v2.06*

Locality: effect **local**

## Description

Removes all UserAction event handlers of the given type which were added by [addUserActionEventHandler](../commands/addUserActionEventHandler.md).

> [!IMPORTANT]
> This command also resets the Event Handler creation index to 0.

## Syntax

```sqf
removeAllUserActionEventHandlers [keyName, eventType]
```

**Parameters:**

- `keyName`: [String](../topics/String.md) - see inputAction/actions
- `eventType`: [String](../topics/String.md) - event name; see [UserAction Event Handlers](../topics/Event_Handlers.md#useraction-event-handlers). Can be one of:
  - "Activate"
  - "Deactivate"
  - "Analog"

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

## Examples

### Example 1

```sqf
removeAllUserActionEventHandlers ["Reload", "Activate"];
```

## See also

[addUserActionEventHandler](../commands/addUserActionEventHandler.md) · [removeUserActionEventHandler](../commands/removeUserActionEventHandler.md) · [Arma 3: Event Handlers](../topics/Event_Handlers.md)

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