Skip to content

hierarchy.removeChild

Removes a child element from a parent.

js
hierarchy.removeChild(dimension, hierarchy, parent, child)
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");
hierarchy.removeChild("Account", "Profit and Loss", "Revenue", "Other Sales");