Skip to main content

system.kanoa.quality.config.deleteAttribute(attributeId, userId)

Deletes an attribute. FK constraints will prevent us from deleting an attribute that is being used by a check item


Parameters

attributeId Integer: Id of attribute to delete
userId Integer


Returns

success Boolean
message String Returns # of records deleted or error message if success is False


Example

attributeId = 1
userId = 5
success, msg = system.kanoa.quality.config.deleteAttribute(attributeId, userId)