Skip to main content

system.kanoa.quality.config.deleteCheckWithHistory

This function requires KanoaQDS module

Description

Deletes a check item along with any associated checkEvent data in KanoaQDS.

Syntax

deleteCheckWithHistory(chkItemId, userId)
  • Parameters
      int chkItemId - ID of the check item to be deleted.
      int userId - User ID
  • Returns
      int modifiedRecords - Number of records modified during the deletion.
  • Code Examples

    # Usage example
    chk_item_id = 3
    user_id = 123
    modified_records = system.kanoa.quality.config.deleteCheckWithHistory(chkItemId=chk_item_id, userId=user_id)

    if modified_records is not None:
    print(f"Successfully deleted {modified_records} records")
    else:
    print("Deletion failed.")