system.kanoa.quality.config.deleteGroup
Description
Deletes a check item group in KanoaQDS.Syntax
deleteGroup(chkItemGroupId, chkShtId, userId)- int chkItemGroupId - ID of the check item group to be deleted.
- int chkShtId - ID of the associated check sheet.
- int userId - User ID
- 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}")