Skip to main content

system.kanoa.quality.config.deleteCheckWithHistory

Requires kanoaQDS license

Description

Deletes a check item along with any associated checkEvent data.

Syntax

deleteCheckWithHistory(chkItemId, userId)

Parameters:
  • chkItemId (int): ID of the check item to be deleted.
  • userId (int): User ID

  • Returns:
  • modifiedRecords (int): 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.")