---
name: "BIS_fnc_variableSpaceRemove"
type: function
status: ok
groups: ["Variables"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_variableSpaceRemove
revid: 349319
updated: 2023-11-08T14:52:29Z
---

# BIS_fnc_variableSpaceRemove

*Function · Variables · Arma 3 v0.50 · introduced in Arma 2 v1.00*

## Description

Remove element from variable from someone's variable space.

## Syntax

```sqf
[object,varName,element,global,inArray] call BIS_fnc_variableSpaceRemove
```

**Parameters:**

- `object`: [Object](../topics/Object.md) - owner of variable space
- `varName`: [String](../topics/String.md) - name of variable
- `element`: [Anything](../topics/Anything.md) - element which will be removed (must be of same type as variable)
- `global`: [Boolean](../topics/Boolean.md) - (Optional, default [false](../commands/false.md)) [true](../commands/true.md) to save modified variable globally]]

**Returns:** [Anything](../topics/Anything.md) - updated variable

## Examples

### Example 1

```sqf
[player, "someVar", 1337, true] call BIS_fnc_variableSpaceRemove;
```

## See also

[BIS_fnc_variableSpaceAdd](../functions/BIS_fnc_variableSpaceAdd.md) · [setVariable](../commands/setVariable.md)

<sub>Source: [BI Community Wiki — BIS fnc variableSpaceRemove](https://community.bistudio.com/wiki/BIS_fnc_variableSpaceRemove) (revision 349319).</sub>
