Skip to content

hierarchy.wipe ​

Removes every element from a hierarchy. The hierarchy itself, and the dimension's elements, are kept.

js
hierarchy.wipe(dimension, hierarchy)

Parameters ​

ParameterTypeDescription
dimensionstringThe dimension's name or id.
hierarchystringThe hierarchy's name.

Returns ​

string

An empty string when it succeeds, or an error message when the dimension can't be found.

Examples ​

js
hierarchy.wipe("Account", "Default");