Skip to main content

system.kanoa.asset.deleteCounter

This function requires KanoaOPS module

Description

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

Syntax

deleteCounter(counterId, userId)
  • Parameters
      int counterId - The ID of the counter to be deleted.
      int userId - The ID of the user making the deletion.
  • Returns
      (bool) Success flag
      (str) Records modified or error message
  • 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.")