# RemoveNode(AccessibilityNode, bool)

> Removes the node from the hierarchy. Can also optionally remove nodes under the given node depending on the value of the removeChildren parameter.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Accessibility](/engine/6000.0/script-reference/unityengine/accessibility.md)
* **Assembly:** UnityEngine.AccessibilityModule

```csharp
public void RemoveNode(AccessibilityNode node, bool removeChildren = true)
```

### Parameters

**** (\[AccessibilityNode]\(/engine/6000.0/script-reference/unityengine/accessibility/accessibilitynode)): The node to remove.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Default value is `true`. If removeChildren is `false`, Unity grafts the child nodes to the parent.
