# DestroySubgraph<U>(U)

> Destroys the Playable and all its inputs, recursively.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Playables](/engine/6000.7/script-reference/unityengine/playables.md)
* **Assembly:** UnityEngine.CoreModule

## DestroySubgraph\<T>(T)

```csharp
public void DestroySubgraph<U>(U playable) where U : struct, IPlayable
```

### Parameters

**** (T): The [Playable](/engine/6000.7/script-reference/unityengine/playables/playable.md) to destroy.
