Skip to main content

system.kanoa.quality.config.deleteGroup

This function requires KanoaQDS module

Description

Deletes a check item group in KanoaQDS.

Syntax

deleteGroup(chkItemGroupId, chkShtId, userId)
  • Parameters
      int chkItemGroupId - ID of the check item group to be deleted.
      int chkShtId - ID of the associated check sheet.
      int userId - User ID
  • Returns
      tuple(success: bool, message: str) - Deletion status and message.
  • Code Examples

    # Usage example
    chk_item_group_id_to_delete = 1
    chk_sht_id = 2
    user_id = 123
    delete_status, delete_message = system.kanoa.quality.config.deleteGroup(chkItemGroupId=chk_item_group_id_to_delete, chkShtId=chk_sht_id, userId=user_id)

    if delete_status:
    print(delete_message)
    else:
    print(f"Deletion failed. Reason: {delete_message}")