system.kanoa.asset.deleteCounter
Description
Deletes the counter in KanoaOPS. Foreign key constraints will prevent deletion if the counter has been used.Syntax
deleteCounter(counterId, userId)- int counterId - The ID of the counter to be deleted.
- int userId - The ID of the user making the deletion.
- (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.")