Skip to main content

system.kanoa.asset.deleteState

This function requires KanoaOPS module

Description

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

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)