system.kanoa.quality.config.deleteCheck(chkItemId, userId)
Deletes a check. FK constraints will prevent us from deleting a check that is being used.
Parameters
chkItemId Integer: Id of check item to delete
userId Integer: Id of user executing the function
Returns
# of records modified Integer
message String 'Deleted' or error message if # of records modified is 0
Example
chkItemId = 3
userId = 5
retVal, message = system.kanoa.quality.config.deleteCheck(chkItemId, userId)