## Node.RemoveChild method

Removes a child node from the DOM and returns the removed node.

Note: As long as a reference is kept on the removed child, it still exists in memory, but is no longer part of the DOM. It can still be reused later in the code. If the return value of `RemoveChild` is not stored, and no other reference is kept, it will be automatically deleted from memory after a short time.

```csharp
public Node RemoveChild(Node child)
```

| Parameter | Type | Description |
| --- | --- | --- |
| child | Node | A [`Node`](../) that is the child node to be removed from the DOM. |

### Return Value

Unlike [`CloneNode`](../clonenode/) the return value preserves the [`EventListener`](../../../aspose.html.dom.events/ieventlistener/) objects associated with it.

### See Also

* class [Node](../)
* namespace [Aspose.Html.Dom](../../../aspose.html.dom/)
* assembly [Aspose.HTML](../../../)
