cns_deleteNodeType

Deletes the given node type.

Synopsis

int cns_deleteNodeType(string sTypeName)

Parameters

Parameter Description
sTypeName ID of the node type which shall be deleted

Return value

Returns 0 if successful or an corresponding error code in case of an error.

Errors

Possible errors:

  • -1 => The given node type does not exist

  • -2 => The given node type is currently used and cannot be deleted

Description

This function deletes the given node type. The node type can only be deleted if it is not used currently.

main()
{
  cns_deleteNodeType("myNodeType");
}

Availability

UI, CTRL