# RemoveRange(int, int)

> Removes the specified number of elements, starting with the element at the specified index.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

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

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The first element to remove.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): How many elements tot remove.

### Remarks

The buffer capacity remains unchanged.
