---
url: /process-functions/hierarchy-unwind.md
description: >-
  Removes the structure from a hierarchy from a specified element down through
  all its descendants.
---

# hierarchy.unwind

Removes the structure from a hierarchy from a specified element down through all its descendants.

```js
hierarchy.unwind(dimension, hierarchy, parent)
```

#### Parameters

* `dimension` - The dimension in which to create a relationship.
* `gierarchy` - The identifier of the hierarchy in which to create a relationship.
* `parent` - The identifier of a member to unwind from.

#### Example

```js
hierarchy.unwind("Account", "Profit and Loss", "EBITDA");
```

:::tip
This function will remove all structure under EBITDA within the Profit and Loss hierarchy of the Account dimension.
:::
