Skip to main content

system.kanoa.asset.deleteState

Requires kanoaOPS license

Description

Deletes an asset state. If the state has been used, it sets the enabled property to False.

Syntax

deleteState(stateId)

Parameters:
  • stateId (int): ID of the asset state to be deleted.

  • Returns:
  • records modified (int): Number of records modified.
  • msg (str): Status message ('Deleted' or 'Disabled').
  • Code Examples

    # Example Usage:
    state_id = 1
    records_modified, status_msg = system.kanoa.asset.deleteState(state_id)