system.kanoa.asset.deleteAssetType
Description
Deletes the assetType and all assetTypes underneath. SQL Cascade should handle deleting children. It should also prevent us from deleting assetTypes if they are currently in use (kanoaOPS).Syntax
deleteAssetType(assetTypeID, userId)- assetTypeID (int) - ID of the asset type to be deleted.
- userId (int) - User ID.
- successFlag (bool) - Boolean indicating the success of the operation.
- msg (str) - Status message ('Deleted' or error message).
Code Examples
# Example Usage:
asset_type_id = 123
user_id = 456
success, message = system.kanoa.asset.deleteAssetType(asset_type_id, user_id)