---
name: "BIS_fnc_removeNestedElement"
type: function
status: ok
groups: ["Arrays"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_removeNestedElement
revid: 327527
updated: 2022-07-12T22:34:05Z
---

# BIS_fnc_removeNestedElement

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

## Description

Function to remove an item in a nested array. Modifies the array by reference.

## Syntax

```sqf
[array, itemToRemove] call BIS_fnc_removeNestedElement
```

**Parameters:**

- `array`: [Array](../topics/Array.md)
- `itemToRemove`: [Anything](../topics/Anything.md)

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) on success, [false](../commands/false.md) on failure

## Examples

### Example 1

```sqf
private _array = [[1, 2], [3, 3, 4]];
private _success = [_array, 3] call BIS_fnc_removeNestedElement; // _array is now [[1, 2], [4]]
```

## See also

[BIS_fnc_findNestedElement](../functions/BIS_fnc_findNestedElement.md) · [BIS_fnc_findAllNestedElements](../functions/BIS_fnc_findAllNestedElements.md) · [BIS_fnc_returnNestedElement](../functions/BIS_fnc_returnNestedElement.md) · [BIS_fnc_setNestedElement](../functions/BIS_fnc_setNestedElement.md)

<sub>Source: [BI Community Wiki — BIS fnc removeNestedElement](https://community.bistudio.com/wiki/BIS_fnc_removeNestedElement) (revision 327527).</sub>
