# RemoveRange(int, int)

> Removes "N" elements of a range. Shifts everything above the range down by "N" and 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 first index of the range 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, `RemoveAtSwapBack` is a more efficient way to remove elements.
