system.kanoa.inventory.deleteModel(modelId, userId)
Deletes the model record identified by modelId.
This removes the model catalog entry permanently, so callers should confirm the model is not referenced by active assets before invoking it.
The userId is recorded for audit purposes on the deletion.
Parameters
modelId Integer
userId Integer:Id of the user executing the function
Returns
success Boolean
message String None if success
Example
modelId = 305
userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})
success, message = system.kanoa.inventory.deleteModel(modelId, userId)
print success, message