system.kanoa.asset.deleteAssets(assetId, userId)
Deletes the asset and all children underneath. Will only succeed if there is no historical data for any of the assets, otherwise need to use the deleteAssetsWithForce() function with CAUTION
Parameters
assetId Integer: Id of the asset to delete
userId Integer
Returns
# of assets deleted Integer
message String None if success
Example
assetId = 123
userId = 456
retVal, message = system.kanoa.asset.deleteAssets(assetId, userId)