---
name: "deleteRange"
type: command
status: ok
groups: ["Arrays"]
arma3_since: "1.32"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/deleteRange
revid: 377170
updated: 2026-01-01T10:45:25Z
---

# deleteRange

*Command · Arrays · Arma 3 v1.32*

## Description

Removes a range of array elements from the given array. Modifies the original array, just like [resize](../commands/resize.md) or [set](../commands/set.md).

## Syntax

```sqf
array deleteRange [from, count]
```

**Parameters:**

- `array`: [Array](../topics/Array.md) of [Anything](../topics/Anything.md)
- `from`: [Number](../topics/Number.md) - array index to start selection from.
- `count`: [Number](../topics/Number.md) - number of array elements to remove. If the selected range exceeds source array boundaries, selection will be made up to the end of the array.

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

## Examples

### Example 1

```sqf
_arr = [1,2,3,4,5,6];
_arr deleteRange [1,4];
hint str _arr; // [1,6]
```

## See also

[deleteAt](../commands/deleteAt.md) · [set](../commands/set.md) · [resize](../commands/resize.md) · [select](../commands/select.md) · [in](../commands/in.md) · [find](../commands/find.md) · [toArray](../commands/toArray.md) · [toString](../commands/toString.md) · [forEach](../commands/forEach.md) · [count](../commands/count.md) · [pushBack](../commands/pushBack.md) · [pushBackUnique](../commands/pushBackUnique.md) · [apply](../commands/apply.md) · [append](../commands/append.md) · [sort](../commands/sort.md) · [param](../commands/param.md) · [params](../commands/params.md) · [arrayIntersect](../commands/arrayIntersect.md) · [splitString](../commands/splitString.md) · [joinString](../commands/joinString.md)

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