---
name: "deActivateKey"
type: command
status: ok
groups: ["Mission Information"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/deActivateKey
revid: 318885
updated: 2022-05-13T09:21:59Z
---

# deActivateKey

*Command · Mission Information · Arma 3 v0.50 · introduced in Arma 2: Operation Arrowhead v1.62*

## Description

Deactivates the given keyname for the current user profile. The keys are used to unlock missions or campaigns.

See keys, keysLimit and doneKeys in the [description.ext](../topics/Description.ext.md#keys) file of the missions.

## Syntax

```sqf
deActivateKey keyname
```

**Parameters:**

- `keyname`: [String](../topics/String.md)

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

## Examples

### Example 1

```sqf
deActivateKey "Mission04Key";
```

## See also

[isKeyActive](../commands/isKeyActive.md) · [activateKey](../commands/activateKey.md)

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