# RemoveAt(int)

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

## Definition

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

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

### Parameters

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

### Remarks

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