system.kanoa.asset.deleteStateCategory(stateCategoryId, userId)
Deletes the stateCategory. SQL will prevent deletion of this stateCategory if it has been used
Parameters
stateCategoryId Integer: Id of the state category to delete
userId Integer: Id of user executing the function
Returns
retVal Boolean
msg String # of records modified or error message
Example
successFlag, message = system.kanoa.asset.deleteStateCategory(123, 5)