system.kanoa.quality.config.deleteCheckWithHistory
Description
Deletes a check item along with any associated checkEvent data in KanoaQDS.Syntax
deleteCheckWithHistory(chkItemId, userId)- int chkItemId - ID of the check item to be deleted.
- int userId - User ID
- 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.")