# DestroyHandlerState(HierarchyNodeType)

> Disposes and forgets the state a node type handler keeps for this view model.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Hierarchy](/engine/6000.6/script-reference/unity/hierarchy.md)
* **Assembly:** UnityEngine.HierarchyCoreModule

```csharp
public bool DestroyHandlerState(HierarchyNodeType nodeType)
```

### Parameters

**** (\[HierarchyNodeType]\(/engine/6000.6/script-reference/unity/hierarchy/hierarchynodetype)): The node type of the handler owning the state.

### Returns

| Type                                                          | Description                                              |
| ------------------------------------------------------------- | -------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if there was state to destroy, `false` otherwise. |
