Skip to main content

system.kanoa.quality.config.deleteCheck

This function requires KanoaQDS module

Description

Deletes a check item in KanoaQDS. FK constraints will prevent deleting a check that is being used.

Syntax

deleteCheck(chkItemId, userId)
  • Parameters
      int chkItemId - ID of the check item to be deleted.
      int userId - User ID
  • Returns
      bool successFlag - Boolean indicating whether the deletion was successful.
      str message - Deletion status message.
  • Code Examples

    # Usage example
    chk_item_id = 3
    user_id = 123
    success_flag, message = system.kanoa.quality.config.deleteCheck(chkItemId=chk_item_id, userId=user_id)

    if success_flag:
    print(f"Successfully deleted check item. {message}")
    else:
    print(f"Deletion failed. {message}")