# RemoveAt(int)

> Remove the child element located at this position from this element's contentContainer

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.0/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

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

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)):&#x20;

### Remarks

Removes the element from both the child list and the layout list. If the index is out of range, an exception will be thrown. Trying to remove an element during a layout pass will trigger an invalid operation exception to prevent unintended consequences.
