system.kanoa.cmms.deleteProcedureCategory(procedureCategoryId, userId)
Deletes a procedure category by id. Use this to remove a category used to organize and classify procedures once it is no longer needed. The underlying SQL will prevent deletion if the category is still in use � for example, if one or more procedures are currently assigned to it � so the call fails safely rather than orphaning existing procedures.
Parameters
procedureCategoryId Integer: Id of the procedure category to delete
userId Integer:Id of the user executing the function
Returns
# of records modified Integer
msg String None if success
Example
procedureCategoryId = 19
userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})
result, message = system.kanoa.cmms.deleteProcedureCategory(procedureCategoryId, userId)
print result, message