# RemoveTransition(AnimatorStateTransition)

> Utility function to remove a transition from the state.

## Definition

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

```csharp
public void RemoveTransition(AnimatorStateTransition transition)
```

### Parameters

**** (\[AnimatorStateTransition]\(/engine/6000.0/script-reference/unityeditor/animations/animatorstatetransition)): Transition to remove.

### Remarks

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