---
name: "removeAction"
type: command
status: ok
groups: ["Interaction"]
arma3_since: "0.50"
locality: {"argument": "global", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/removeAction
revid: 348246
updated: 2023-11-08T11:40:32Z
---

# removeAction

*Command · Interaction · Arma 3 v0.50 · introduced in Operation Flashpoint v1.20*

Locality: arguments **global** · effect **local**

## Description

Removes user added action with given ID. This only removes actions added with the [addAction](../commands/addAction.md) command. You cannot remove default game actions, such as reload.

## Syntax

```sqf
unit removeAction actionID
```

**Parameters:**

- `unit`: [Object](../topics/Object.md) - unit, vehicle or static object
- `actionID`: [Number](../topics/Number.md) - action ID returned by [addAction](../commands/addAction.md)

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

## Examples

### Example 1

```sqf
player removeAction 0;
```

## See also

[actionIDs](../commands/actionIDs.md) · [actionParams](../commands/actionParams.md) · [addAction](../commands/addAction.md) · [setUserActionText](../commands/setUserActionText.md) · [inGameUISetEventHandler](../commands/inGameUISetEventHandler.md) · [showHUD](../commands/showHUD.md) · [inputAction](../commands/inputAction.md) · [removeAllActions](../commands/removeAllActions.md) · [action](../commands/action.md)

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