Skip to content

yamlDelete

yamlDelete(yaml, path) → value · YAML

Return a new YAML structure with the value at the given path removed. See Chapter 26.

  • yaml (required): YAML UDM value

  • path (required): dot-separated path string

utlx
yamlDelete($input, "database.password")  // returns structure without password

Also: yamlDeepMerge(obj1, obj2), yamlKeys(obj), yamlValues(obj), yamlSort(obj), yamlValidate(yaml, rules), yamlFilterByKeyPattern(obj, pattern).

Released under AGPL-3.0.