Skip to main content

system.kanoa.asset.deleteMode

Requires kanoaOPS license

Description

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

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)