# Deselect

> Clears the selection state of the specified node.

## Definition

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

## Deselect(HierarchyNode)

Clears the selection state of the specified node.

```csharp
public void Deselect(in HierarchyNode node)
```

### Parameters

**** (\[HierarchyNode]\(/engine/6000.5/script-reference/unity/hierarchy/hierarchynode)): The [HierarchyNode](/engine/6000.5/script-reference/unity/hierarchy/hierarchynode.md) to clear the selection state of.

## Deselect(ReadOnlySpan\<HierarchyNode>)

Clears the selection state of the specified nodes.

```csharp
public void Deselect(ReadOnlySpan<HierarchyNode> nodes)
```

### Parameters

**** (\[ReadOnlySpan\<HierarchyNode>]\(https\://learn.microsoft.com/dotnet/api/system.readonlyspan-1)): The [HierarchyNode](/engine/6000.5/script-reference/unity/hierarchy/hierarchynode.md)s to clear the selection state of.
