# RemoveAt(int)

> Removes the element at an index, shifting everything above it down by one. Decrements the length by 1.

## Definition

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

```csharp
public void RemoveAt(int index)
```

### Parameters

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

### Remarks

If you don't care about preserving the order of the elements, [NativeList\<T>.RemoveAtSwapBack](/engine/6000.7/script-reference/unity/collections/nativelist1/removeatswapback.md) is a more efficient way to remove elements.
