Skip to main content

system.kanoa.asset.deleteAssetType(assetTypeId, userId)

Deletes the assetType and all assetTypes underneath. SQL Cascade should handle deleting children and constraint will prevent the deletion of assetTypes that are in use.


Parameters

assetTypeId Integer: Id of asset type to delete
userId Integer: Id of user executing the function


Returns

success Boolean
msg String # of records modified or error message


Example

assetTypeId = 123
userId = 456
success, message = system.kanoa.asset.deleteAssetType(assetTypeId, userId)