Skip to main content

system.kanoa.quality.config.deleteAlertGroup

Requires kanoaQDS license

Description

Deletes an alert group.

Syntax

deleteAlertGroup(alertGroupId, userId)

Parameters:
  • alertGroupId (int): ID of the alert group to be deleted.
  • userId (int): User ID

  • Returns:
  • successFlag (bool): Boolean indicating the success of the deletion.
  • msg (str): Message indicating the result of the deletion.
  • Code Examples

    # Usage example
    retVal, msg = system.kanoa.quality.config.deleteAlertGroup(alertGroupId=1, userId=123)
    if msg or retVal == 0: system.perspective.sendMessage('showWarningToast', {'message': 'Could not delete this alert group. %s'%msg})
    else: system.perspective.sendMessage('showSuccessfulToast', {'message': 'Alert Group has been deleted'})
    >