# RemoveAtSwapBack(int)

> Copies the last element of this list to the specified index. 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 RemoveAtSwapBack(int index)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index to overwrite with the last element.

### Remarks

Useful as a cheap way to remove an element from this list when you don't care about preserving order.
