# RemoveAnyStateTransition(AnimatorStateTransition)

> Utility function to remove an AnyState transition from the state machine.

## Definition

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

```csharp
public bool RemoveAnyStateTransition(AnimatorStateTransition transition)
```

### Parameters

**** (\[AnimatorStateTransition]\(/engine/6000.5/script-reference/unityeditor/animations/animatorstatetransition)): The AnyStat transition to remove.

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |

### Remarks

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