Skip to main content

system.kanoa.asset.deleteCounterType

Requires kanoaOPS license

Description

Deletes the counterType in KanoaOPS. Foreign key constraints will prevent deletion if the counterType has been used.

Syntax

deleteCounterType(counterTypeId, userId)

Parameters:
  • counterTypeId (int): The ID of the counterType to be deleted.
  • userId (int): The ID of the user making the deletion.

  • Returns:
  • Success flag (bool)
  • Records modified or error message (str)
  • Code Examples

    # Usage example
    success_flag, message = system.kanoa.asset.deleteCounterType(counterTypeId=123, userId=456)

    if not success_flag:
    print(f"Deletion failed: {message}")
    else:
    print(f"Successfully deleted counterType.")