Skip to main content

system.kanoa.asset.deleteState(stateId, userId)

Delete an state. If the state has been used then the enabled property will be set to False


Parameters

stateId Integer: Id of the state to delete
userId Integer: Id of user executing the function


Returns

# of records modified Integer
msg String 'Deleted', 'Disabled' or error message


Example

stateId = 1
recordsModified, statusMsg = system.kanoa.asset.deleteState(stateId)