item.deleteField()

Deletes a specific field from an item's YAML file.

api.nexomaker.item.deleteField({ path, fieldPath })

Parameters

Parameter
Type
Description

path

string

Absolute path to the item's YAML file

fieldPath

string

Dot-notation path to field (e.g., 'mechanics.durability')

Example

await api.nexomaker.item.deleteField({
  path: itemData.path,
  fieldPath: 'mechanics.special_effect'
});

Last updated