system.kanoa.attribute.deleteAttribute(attributeId, userId)
Deletes an attribute. SQL foreign key constraints will prevent the deletion an attribute that is being used
Parameters
attributeId Integer
userId Integer
Returns
success Boolean
message String # of records deleted or error message
Example
attributeId = 1
userId = 123
success, message = system.kanoa.attribute.deleteAttribute(attributeId, userId)