element.delete
Deletes an element from a dimension and from every hierarchy it's in.
js
element.delete(dimension, name)Parameters
| Parameter | Type | Description |
|---|---|---|
dimension | string | The dimension's name or id. |
name | string | The element's name. |
Returns
stringAn empty string when it succeeds, or an error message when the dimension can't be found. Deleting an element that doesn't exist isn't an error.
Examples
js
element.delete("Account", "600010");