> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# `__RemoveElement`

## Introduction

Removes an Element node from its parent's list of child nodes.

## Syntax

```jsx
__RemoveElement(parent: Element, child: Element) : Element;
```

### Parameters

|   Key  | Description                                   |
| :----: | --------------------------------------------- |
| parent | The parent node object.                       |
|  child | The child node to be removed from the parent. |

### Return Value

Returns the removed child node.

## Example

The frontend framework can perform the removal operation as follows.

```jsx
// main-thread.js
let child = __CreateElement('view', 0, {});

let parent = __CreateElement('view', 0, {});

__AppendElement(parent, child);

__RemoveElement(parent, child);
```
