# RemoveRange(int, int)

> Removes "N" elements in a range, shifting everything above the range down by "N". Decrements the length by "N".

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule

```csharp
public void RemoveRange(int index, int count)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index of the first element to remove.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The number of elements to remove.

### Remarks

If you don't care about preserving the order of the elements, `RemoveRangeSwapBackWithBeginEnd` is a more efficient way to remove elements.
