---
url: /process-functions/hierarchy-removechild.md
description: Removes a child element from a parent.
---

# hierarchy.removeChild

Removes a child element from a parent.

```js
hierarchy.removeChild(dimension, hierarchy, parent, child)
```

#### Parameters

* `dimension` - The dimension in which the selected hierarchy exists.
* `hierarchy` - The identifier of the hierarchy.
* `parent` - The identifier of the direct parent of the child element.
* `child` - The identifier of the child element.

#### Example

```js
hierarchy.removeChild("Account", "Profit and Loss", "Revenue", "Other Sales");
```
