# RemoveLayer(int)

> Utility function to remove a layer from the controller.

## Definition

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

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

### Parameters

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

### Remarks

This function pushes an Undo operation.
