# RemoveChild(int)

> Utility function to remove the child of a blend tree.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Animations](/engine/6000.6/script-reference/unityeditor/animations.md)
* **Assembly:** UnityEditor.CoreModule

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

### Parameters

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

### Remarks

If the blend tree is a sub asset of the blend tree, it will be deleted. This function pushes an Undo operation.
