Skip to main content

system.kanoa.asset.deleteMode

Description

Delete an asset mode. If the mode has been used, then we must just set the enabled property to False (kanoaOPS).

Syntax

deleteMode(modeId, userId)
  • Parameters
      modeId (int) - ID of the mode to be deleted.
      userId (int) - User ID.
  • Returns
      # of records modified (int).
  • Code Examples

    # Example Usage:
    mode_id = 123
    user_id = 456
    records_modified, message = system.kanoa.asset.deleteMode(mode_id, user_id)