Skip to main content

system.kanoa.asset.deleteCounter

Requires kanoaOPS license

Description

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

Syntax

deleteCounter(counterId, userId)

Parameters:
  • counterId (int): The ID of the counter 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.deleteCounter(counterId=123, userId=456)

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