# Remove(VisualElement)

> Removes this child from the hierarchy.

## Definition

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

```csharp
public void Remove(VisualElement child)
```

### Parameters

**** (\[VisualElement]\(/engine/6000.3/script-reference/unityengine/uielements/visualelement)):&#x20;

### Remarks

This method will first calculate the index of the child, followed by calling the [VisualElement.Hierarchy.RemoveAt](/engine/6000.3/script-reference/unityengine/uielements/visualelement/hierarchy/removeat.md) method to remove it from the hierarchy. If the element is null or not present in the hierarchy, an exception will be thrown.
